• 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
Query: IBOutlet fails if setter method of same name exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query: IBOutlet fails if setter method of same name exists


  • Subject: Query: IBOutlet fails if setter method of same name exists
  • From: ruffnex <email@hidden>
  • Date: Tue, 14 May 2002 00:27:31 +0800

Hi,
Consider the following:

IBOutlet id foobar; // where foobar outlet is connected to foobar object,
e.g. CheckBox button

-(void)setFoobar:(BOOL)boolean; // a method I want to use from within my code


On running the above code, foobar is nil. It's not connected! If the method is renamed, so it doesn't look like a standard setter, than foobar is connected to a real NSButton. Strange behaviour eh?

Perhaps I've missed something obvious - would appreciate someone shedding some light on this. Apologies if it's blatantly obvious, but it's something that caused me hours of pain (and perhaps to others as well).

Cheers

Simon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Query: IBOutlet fails if setter method of same name exists
      • From: Bill Cheeseman <email@hidden>
    • Re: Query: IBOutlet fails if setter method of same name exists
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Re: Using Unix commands
  • Next by Date: Time elapsed how-to ?
  • Previous by thread: Re: What does NSURL setProperty:forKey: do?
  • Next by thread: Re: Query: IBOutlet fails if setter method of same name exists
  • Index(es):
    • Date
    • Thread