• 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
Neophyte Question: Connecting to nib objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Neophyte Question: Connecting to nib objects


  • Subject: Neophyte Question: Connecting to nib objects
  • From: Phil Hystad <email@hidden>
  • Date: Mon, 19 Oct 2009 08:51:10 -0700

I am new to Cocoa and I am wondering how to do something that should be simple and obvious. Given that I have an object defined in the nib (aka xib), for example, an object that responds to a given view, what is the correct way for my running application (if it is in some other state, not responding to an action) to obtain a pointer to that object.

Maybe a second question is "Do I ever need to do this?".

This question came about because I was experimenting with a sample program I am using to learn Cocoa and I wanted to change the state of the class that is defined in the nib. I did not know how to get a pointer to that object. It seems that it is serialized (un-archived?) when the nib is loaded.

Thanks,
phil
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


  • Follow-Ups:
    • Re: Neophyte Question: Connecting to nib objects
      • From: Kyle Sluder <email@hidden>
    • Re: Neophyte Question: Connecting to nib objects
      • From: Mark Ritchie <email@hidden>
  • Prev by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by Date: Re: Neophyte Question: Connecting to nib objects
  • Previous by thread: Re: Recreating iPhone alarm Picker
  • Next by thread: Re: Neophyte Question: Connecting to nib objects
  • Index(es):
    • Date
    • Thread