• 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: Get specified window from nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get specified window from nib


  • Subject: Re: Get specified window from nib
  • From: Graham Cox <email@hidden>
  • Date: Tue, 12 Aug 2008 20:24:57 +1000


On 12 Aug 2008, at 8:15 pm, Fosse wrote:

But It's strange that I don't find APIs of NSWindow to get its name which is
shown in the Interfact Builder.. Those objects have different name in the IB
and I want to get one specific window from the top object array... Is there
other methods to get it?


No. The names assigned to objects in Interface Builder have nothing to do with anything. They are just names that help you label things in a nib so you can figure out what's what *within IB*. They are not used by any code, yours or Cocoa's. This appears to be a common misunderstanding.

The right (and in fact only) way to reference an object within a nib is to connect it to an outlet declared by your File's Owner object.

hth,

cheers, Graham


_______________________________________________

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


References: 
 >Get specified window from nib (From: Fosse <email@hidden>)
 >Re: Get specified window from nib (From: Graham Perks <email@hidden>)
 >Re: Get specified window from nib (From: Fosse <email@hidden>)

  • Prev by Date: Re: I don't understand why this is leaking...
  • Next by Date: Re: I don't understand why this is leaking...
  • Previous by thread: Re: Get specified window from nib
  • Next by thread: Re: Get specified window from nib
  • Index(es):
    • Date
    • Thread