• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: *Really* Understanding Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *Really* Understanding Cocoa


  • Subject: Re: *Really* Understanding Cocoa
  • From: Hasan Diwan <email@hidden>
  • Date: Thu, 26 Dec 2002 14:17:09 -0500

I don't believe the Nib file format was ever released by NeXT.
IBAction is equivalent to void for all practical purposes (except for
in interface builder). I'd imagine there's a rule in the lexer to
handle that. All in all, I'm really not too interested in how Cocoa
works at that level as I don't need to know that in order to make use
of it.
On Thursday, December 26, 2002, at 07:48 AM, Dustin Voss wrote:
>
> Yeah, that would help you understand it. They say the best way to
> learn something is to teach it, and my experience bears that out.
>
> Outlets are just variables in a struct. All Objective C objects are
> structs. Objective C is basically a pre-processor that changes text
> like [self alloc] to a C function call. Granted, it's a fairly
> sophisticated pre-processorit's almost a compiler in its own
> rightbut that's how I think of it. Just know that it all boils down
> to C in the end. If you want more details along those lines, you can
> read "The Objective-C Programming Language" manual on Apple's site,
> especially the "Objective-C Runtime Functions and Data Structures"
> chapter
> (http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/
> 9objc_runtime_reference/Objective_C__Structures.html).
>
> I haven't found a good low-level description of how NIBs, outlets, and
> actions work either, but I managed to come up with a mental model to
> help me out. After doing that, of course, I discovered
> www.cocoadev.com. Among the pages on that site are some that explain
> how some things work. I contributed to the page titled "FilesOwner";
> another useful page for you might be "OutletVariable". Their URLs are
> "http://www.cocoadev.com/index.pl?<page title>", or do a search.
>
> Actions are simply callbacks provided by a class, taking one
> parameter. "IBAction" and "IBOutlet" are simply bits of text that IB
> can recognize; they're probably empty #defines or something.
>
> I don't know much about it, but key-value coding might also be useful
> for you to understand. Look up the NSKeyValueCoding protocol, and
> check out this list's archive. It's evidently more powerful, and used
> in more places, than the docs let on.
>
> Hope this helps.
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
>
Hasan Diwan
OpenPGP KeyID: 0x7EE3855B
Fingerprint: 42F0 5758 C3EB BA1F ABD2 ED49 3390 CCF0 7EE3 855B
http://www.cs.rpi.edu/~diwanh/gpg.key

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: *Really* Understanding Cocoa
      • From: David Remahl <email@hidden>
References: 
 >Re: *Really* Understanding Cocoa (From: Dustin Voss <email@hidden>)

  • Prev by Date: problem with NSFileHandle's readDataToEndOfFile
  • Next by Date: Re: Crontab/Scheduled tasks
  • Previous by thread: Re: *Really* Understanding Cocoa
  • Next by thread: Re: *Really* Understanding Cocoa
  • Index(es):
    • Date
    • Thread