Re: File's Owner
Re: File's Owner
- Subject: Re: File's Owner
- From: Jonathan Hendry <email@hidden>
- Date: Fri, 23 May 2008 23:41:57 -0400
An example of multiple nibs where a nib's File's Owner wouldn't
necessarily be NSApp would be System Preferences and the
preferencepane bundles that it loads.
NSApp would be SystemPreferences.app, and owns the main nib of the
application.
Each preference pane is an instance of NSPreferencePane (or a
subclass), which is the owner of a nib that provides the user
interface that loads in when you select the pane.
So in that case, NSApp owns a nib, but also has a collection of
NSPreferencePane objects, each of which owns a nib.
Conceivably, an NSPreferencePane object might be paired with one or
more other classes (for example, a class to load and display screen
saver previews) which might want access to the pane's user interface
widgets or their data. It would access those indirectly through the
preference pane, which is connected to the widgets using the File's
Owner proxy.
On May 23, 2008, at 10:31 PM, Johnny Lundy wrote:
OK that's the first step towards saying what it is - the controller
object that manages the corresponding user interface objects in the
nib file. Now to find out what "managing" them means. This implies
that NSApp is a "controller object" that manages the user interface
objects in my nib file. I need to find out what NSApp is doing to my
nib file objects to "manage" them.
I'm getting closer. Thanks for the reference.
On May 23, 2008, at 7:36 PM, Julien Jalon wrote:
File's Owner can be any object in your application but is most
often set to the controller object that manages the corresponding
user interface objects in the nib file.
_______________________________________________
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:
This email sent to email@hidden
_______________________________________________
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:
This email sent to email@hidden