• 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: top level objects and NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: top level objects and NSWindowController


  • Subject: Re: top level objects and NSWindowController
  • From: Ken Victor <email@hidden>
  • Date: Fri, 23 Jun 2006 16:20:51 -0700

matt,
thanx for the response. and while that thread is interesting, and perhaps i missed something in my reading of it, but i don't see how to get the top level objects in a nib that is loaded via an NSWindowController.


ken


At 4:10 PM -0700 6/23/06, Matt Neuburg wrote:
On Fri, 23 Jun 2006 12:26:34 -0700, Ken Victor <email@hidden> said:
other than by using outlets, is it possible to gain access to the top
level objects in a nib file loaded via an NSWindowController?

i would like to place several custom views in a nib (to be used as
various panes in a tab view), and i would like programmatically to
determine how many of them there are and get pointers to them when i
load the window.

i realize i could switch to using NSNib instead of
NSWindowController, but i really really want to use
NSWindowController.

also, i realize i can do this by using outlets, but that means
editting my source code every time i add another custom view. i also
realize that i could add an outlet to my custom views to point to a
controller in the nib, and then "register" the custom views in
awakeFromNib, but that seems like an extra step if i could simply get
the array of top level objects from NSWindowController.

Uuuuuse the archiiiives, Luuuuuke!

<http://www.cocoabuilder.com/archive/message/cocoa/2002/4/3/53561>

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: top level objects and NSWindowController (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Next by Date: How to Implement Film Rolls Functionality Like iPhoto
  • Previous by thread: Re: top level objects and NSWindowController
  • Next by thread: Re: top level objects and NSWindowController
  • Index(es):
    • Date
    • Thread