Re: Accessing Cocoa UI Componets
Re: Accessing Cocoa UI Componets
- Subject: Re: Accessing Cocoa UI Componets
- From: William Bumgarner <email@hidden>
- Date: Tue, 25 Apr 2006 09:10:44 -0700
On Apr 25, 2006, at 7:30 AM, Jerrod Fowkes wrote:
I can't, I need the instance of the button on my form. Since it's
not an outlet, I don't have an actual object of it. except when I
click on it (sender), however I dont' think I can modify that.
You can certainly connect an outlet to a button in a form. The only
time you cannot connect an outlet to a bit of UI in IB is if the UI
is dynamically generated (via code).
IB's feedback on the connection is a bit wonky at times, but you can
definitely make such a connection.
Hsu <email@hidden> wrote: Why not just use -[NSButton
setAlternateImage:] ?
Given what Hsu wrote, he was suggesting that you use the instance
method -setAlternateImage:. This would require a reference to -- an
outlet connected to -- the button you want to modify. That is,
[NSButton setAlternateImage: anImage] is meaningless.
b.bum
_______________________________________________
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