Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: just don't get it...



On Thu, Jul 17, 2008 at 2:14 PM, James Maxwell
<email@hidden> wrote:
> Sorry folks, but there are things about IB that just don't make sense to me.
>
> How on earth to I communicate with an object that has been instantiated by
> Interface Builder???

If you talking about an object instantiated outside of nib messaging
an object instantiated "inside" of a nib then you normally do that by
"wiring" up an outlet.

<http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/ConnectionsandBindings/chapter_6_section_3.html#//apple_ref/doc/uid/TP40005344-CH7-SW31>
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/06Controller/chapter_6_section_2.html#//apple_ref/doc/uid/TP40000863-CH8-SW10>

...also review file's owner...

<http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/ApplicationBasics/chapter_3_section_2.html#//apple_ref/doc/uid/TP40005344-CH3-SW15>

> I have a document-based app, and an AppController instantiated in IB. The
> AppController needs a reference to the document. If I can get that far,
> everything else I need to do should be straightforward.

Review the docs on document based applications.

<http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/OverviewDocArchitecture.html#//apple_ref/doc/uid/20000023>

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >just don't get it... (From: James Maxwell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.