• 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: IBOutlet not 'sticking' at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBOutlet not 'sticking' at runtime


  • Subject: Re: IBOutlet not 'sticking' at runtime
  • From: Jonathon Mah <email@hidden>
  • Date: Thu, 8 Sep 2005 02:37:51 +0930

On 2005-09-08, at 00:58, Adam Raney wrote:

I have created a custom subclass of NSPopUpButton (ACRPopUpButton) and given it an IBOutlet called target, typed to NSTextField.

In Interface builder, I have successfully placed the custom object in my window (placed NSPopUpButton and selected ACRPopUpButton from it's Custom Class option). I have also connected the target IBOutlet to a text field on the same window.

The problem I have is, when the my app runs, the target is showing up as 0x0, as though it is not getting assigned. This has worked on other custom subclasses (such as my window controller), what could be causing this issue?

If you have a setter method defined for the outlet, that will be called instead of setting the variable directly. For example, if the outlet was named 'myPopup' and I had a method 'setMyPopup:', the method would be called and passed the UI object, and the instance variable 'myPopup' would be unchanged (unless you set it yourself in the setMyPopup: method).


Is this the case with your code?



Jonathon Mah
email@hidden


_______________________________________________ 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: 
 >IBOutlet not 'sticking' at runtime (From: Adam Raney <email@hidden>)

  • Prev by Date: Re: Core Data Accessor method generation
  • Next by Date: Re: IBOutlet not 'sticking' at runtime
  • Previous by thread: IBOutlet not 'sticking' at runtime
  • Next by thread: Re: IBOutlet not 'sticking' at runtime
  • Index(es):
    • Date
    • Thread