RE: Button IB action on rename
RE: Button IB action on rename
- Subject: RE: Button IB action on rename
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Tue, 22 Jul 2003 19:02:27 -0400
Mark, I set up a test project and changing the name of a button has
absolutely no effect on whether it fires its action. My project has two
buttons. One button logs its own name; the other changes the name of the
first. The first button always logs its name, no matter how many times I
change the name.
There's something else wrong in your project. Does a clean/rebuild help?
Are you sure newTitle is an NSString? Are you really, really, REALLY sure
you hooked up the action?
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Mark Flider
>
Sent: Tuesday, July 22, 2003 4:49 PM
>
To: matt neuburg
>
Cc: email@hidden
>
Subject: Re: Button IB action on rename
>
>
>
On Tuesday, July 22, 2003, at 12:54 PM, matt neuburg wrote:
>
> On Mon, 21 Jul 2003 23:50:30 -0500, Mark Flider <email@hidden> said:
>
>> I set up a regular NSButton's action to invoke an IBAction from
>
>> Interface Builder (I click, the IBAction performs, everything normal).
>
>> However, I would like to change the name of my button (like the
>
>> top-left button in Property List Editor) dynamically. However, once I
>
>> change the name with [myNSButton setTitle:newTitle], the action no
>
>> longer performs on click.
>
>
>
> Does your action code check against [sender title] to identify the
>
> sender?
>
> If so, there's the problem. m.
>
>
No, my code contains an IBAction that simply calls an NSLog() command
>
that never prints. I even debugged it with a breakpoint stuck in there
>
just to be sure. The function definitely doesn't get called after I
>
change the title, even if I change it back to its original title.
>
>
-- Mark Flider
>
_______________________________________________
>
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.
_______________________________________________
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.