• 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
Re: Button refuse to change the title!!!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Button refuse to change the title!!!!


  • Subject: Re: Button refuse to change the title!!!!
  • From: "Jay" <email@hidden>
  • Date: Thu, 5 Apr 2007 19:31:07 +0800

Sorry..... for all your replies...
I'm stupid....stupid...
problem sovled. I fogor to connect the button to the outlet...
Thanks always..

----- Original Message ----- From: "Citizen" <email@hidden>
To: "Jay" <email@hidden>
Sent: Friday, April 06, 2007 7:26 AM
Subject: Re: Button refuse to change the title!!!!



This may well be a stupid question...
Have you confirmed that the code is even being reached with an NSLog function?


Dave.

On 5 Apr 2007, at 11:53, Jay wrote:

I have a single button on a window, and want it be changed to another title after pushing it, but never succeeded to do so. Please let me know the correct solution to it, thansk.

[myButton setTitle:@"myNewTitle"];
this is what I used to change the title.
even if I called the following to redraw it,
[myButton display];
[[myButton superview]  setNeedsDisplay:YES];
[[myButton superview]  setNeedsDisplayInRect:[myButton frame]];
[[myButton superview]  setNeedsDisplayInRect:[myButton bounds]];

what's going on with it then?

Best regards,
Jay

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40zenopolis.com


This email sent to email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Button refuse to change the title!!!! (From: "Jay" <email@hidden>)

  • Prev by Date: Re: Odd Layout Manager Crash
  • Next by Date: Cocoa equivalent of subclassing a REALbasic Canvas?
  • Previous by thread: Re: Button refuse to change the title!!!!
  • Next by thread: Cocoa equivalent of subclassing a REALbasic Canvas?
  • Index(es):
    • Date
    • Thread