• 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
NSButton referencing outlet won't work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButton referencing outlet won't work?


  • Subject: NSButton referencing outlet won't work?
  • From: Richard Bannister <email@hidden>
  • Date: Sat, 7 Feb 2009 19:54:17 +0000

Folks,

I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped...

I am building a NSDocument-based application. The main document window has a NSButton in it, with a referencing outlet connected to the following:

@interface MyDocument : NSDocument
{
	IBOutlet NSButton			*b_ratefreq;
}

Interface Builder assures me that I've got b_ratefreq connected to the appropriate button.

The selector action for this button works fine - if I click on it, that does what it should.

However, if I attempt to invoke [b_ratefreq setTitle:@"Test"] nothing happens, and an attempt to get a [b_rateFreq title] returns NULL.

Am I missing something crucially obvious?

Thanks in advance,

Richard
_______________________________________________

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


  • Prev by Date: Re: NSTableView Popup Column issue
  • Next by Date: Re: NSButton referencing outlet won't work?
  • Previous by thread: Re: -[NSTreeController moveNode:toIndexPath:] broken?
  • Next by thread: Re: NSButton referencing outlet won't work?
  • Index(es):
    • Date
    • Thread