On Dec 20, 2011, at 06:03, Eric Matecki wrote:

> Hi,
> 
> I'm new to IB.
> 
> I'm trying to find by which magic "NSWindow * imageCaptureWindow;",
> member of "@interface Controller : NSWindowController",
> gets initialized by the following code :
> [NSBundle loadNibNamed: @"ImageCapture" owner: self];
> 
> This variable isn't initialized anywhere in the code, so it must be IB
> which does it.  But, contrary to the window's views, it isn't even an 
> IBOutlet.
> 
> The only connection/binding/whatever I can see in IB for this window is
> the delegate to "point to" the owner, which is the previously mentionned 
> Controller.
> 
> Also, for the "Device Browser View", where in IB can I find how "mode" is set 
> to "IKDeviceBrowserViewDisplayModeTable" ?
> 
> I (think I) do understand how bindings works, but not how to retrieve the 
> pertinent information in IB...
> 
> Any help would be appreciated, IB is so mysterious to me !

Salut Eric.

I'm sure that there are some who will be able to better explain it than myself 
but, to make a long story short, when you call loadNIbNamed:, the method will 
connect all the instance variables of the "owner" that you have declared to be 
IB outlets with the UI objects that you did create in IB, after they are 
instantiated. How does the method do that? If they are no setter for a 
particular ivar, it will just set the ivar directly. This is also probably 
explained in the documentation.

HTH!

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
laur...@nemesys-soft.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to