Re: Button IB action on rename
Re: Button IB action on rename
- Subject: Re: Button IB action on rename
- From: Howard Griffith <email@hidden>
- Date: Tue, 22 Jul 2003 16:12:30 -0700 (PDT)
It may sound silly but have you tried reseting its
action during your rename of the button ?
[myNSButton setTitle:newTitle setAction:sameAction]
Regards,
Howard
--- Mark Flider <email@hidden> wrote:
>
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.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
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.