Professional Web Applications Themes

How to get system properties programmatically - Mac Programming

Hi folks , I am new to MAC programming and having difficulties with finding the follwing information ... 1. How do I get the OS version I am running programmatically ? (I know I can do a sysctl , but I dont need the Darwin stuff.I need the information abt "MAC OS 10.2.3" or sth like that) 2. How do I get info like the ipaddress of the system , the subnet etc. Pardon me if these are trivial but I dont seem to be able to locate this information...

  1. #1

    Default How to get system properties programmatically

    Hi folks ,
    I am new to MAC programming and having difficulties with
    finding the follwing information ...
    1. How do I get the OS version I am running programmatically ? (I know
    I can do a sysctl , but I dont need the Darwin stuff.I need the
    information abt "MAC OS 10.2.3" or sth like that)
    2. How do I get info like the ipaddress of the system , the subnet
    etc.
    Pardon me if these are trivial but I dont seem to be able to locate
    this information
    sudeep Guest

  2. #2

    Default Re: How to get system properties programmatically

    On 4 Nov 2003, sudeep wrote:
     
    Use gestalt.
     
    There is no such thing as "the" ip address of the system, but getifaddrs
    will provide you with a linked list with that information for each
    interface that has been configured.

    Fred

    Frederick Guest

  3. #3

    Default Re: How to get system properties programmatically

    Frederick Cheung <DUH.ucam.org> wrote in message news:<srcf.societies.cam.ac.uk>... 
    > Use gestalt.[/ref]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Thanks Fred , that was helpful.

     
    > There is no such thing as "the" ip address of the system, but getifaddrs
    > will provide you with a linked list with that information for each
    > interface that has been configured.[/ref]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^
    Pardon me for phaps the grammatical slip in "the" ip address.
    sudeep Guest

  4. #4

    Default Re: How to get system properties programmatically

    In article <google.com>,
    com (sudeep) wrote:
     
    > > Use gestalt.[/ref]
    > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > Thanks Fred , that was helpful.[/ref]

    Actually, it was. Got to http://www.apple.com/developer and look in the docsfor more info. A tiny hint: It's a Carbon API.

    NB - Please remember, that whoever answers your questions here does so
    of their own free will, on their own time. None of the people here are
    paid by Apple to actually answer questions.

    If they're terse, it usually means they are *very* busy. And most very
    busy people are actually the very qualified ones, so you should be happy
    that someone who knows his stuff actually took his time to answer you.

    Bye,
    -- M. Uli Kusterer
    http://www.zathras.de
    Uli Guest

  5. #5

    Default OT : Re: How to get system properties programmatically

    Uli Kusterer <de> wrote in message news:<t-online.com>... 
    > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    > > Thanks Fred , that was helpful.[/ref]
    >
    > Actually, it was. Got to http://www.apple.com/developer and look in the docsfor more info. A tiny hint: It's a Carbon API.[/ref]
     
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
    I am a Linux programmer who is now working on MAC.And in Linux
    community , you get answers by posting , and you dont become indebted
    or thankful to somebody because he or she took time to read your post
    and helped you out . Its a way of life in that community, and no , we
    dont get paid there for helping.
     
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
    I dont think that I , for a moment, forwarded an opinion on people
    being busy or otherwise, nor do I doubt the qualifications of anyone
    who answers the posts here.
    sudeep Guest

  6. #6

    Default Re: OT : Re: How to get system properties programmatically

    In article <google.com>,
    com (sudeep) wrote:
     

    Well isn't that nice of you.
     

    Actually, maybe that's your way of life. If you are saying that most people in
    the Linux community do not have feel grateful or indebted in any way, either you
    are confused or you are hanging out with socially inept weenies. Certainly, the
    Linux communities that I am in are not devoid of gratefulness and reciprocation.

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  7. #7

    Default Re: OT : Re: How to get system properties programmatically

    In article <google.com>,
    com (sudeep) wrote:
     
    > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
    > I am a Linux programmer who is now working on MAC.And in Linux
    > community , (...)[/ref]

    Sudeep, (I'll assume this is you name, you didn't sign your last post)

    if you recall, Netiquette, which actually came out of the Linux
    community (RFC 1855, available e.g. at <http://www.dtcc.edu/cs/rfc1855.html>), you would be aware that this is not the Linux community, and that it
    considers it essential to familiarize yourself with the rules and
    conventions of newsgroups or fora you are new to.

    Whatever may be allowed/tolerated/expected in other newsgroups you've
    been on so far, in this newsgroup, people are expected to be polite, at
    least as polite as would be expected when talking to people that are
    actually physically present.

    Cheers,
    -- M. Uli Kusterer
    "The Witnesses of TeachText are everywhere..."
    http://www.zathras.de
    Uli Guest

Similar Threads

  1. Programmatically changing Adobe Pdf Print Properties
    By Bash_on_deja in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: October 22nd, 08:47 AM
  2. Programmatically Get to User Control Properties
    By Newbie in forum ASP.NET Building Controls
    Replies: 2
    Last Post: July 14th, 12:55 PM
  3. Can I access datasource properties programmatically?
    By mate of the state in forum Coldfusion - Advanced Techniques
    Replies: 5
    Last Post: May 23rd, 03:59 PM
  4. Replies: 0
    Last Post: May 2nd, 04:36 PM
  5. Properties for User Controls loaded Programmatically
    By TK in forum ASP.NET Building Controls
    Replies: 2
    Last Post: February 26th, 01:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139