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

Button refuse to change the title!!!!


  • Subject: Button refuse to change the title!!!!
  • From: "Jay" <email@hidden>
  • Date: Thu, 5 Apr 2007 18:53:29 +0800

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Button refuse to change the title!!!!
      • From: Murat Konar <email@hidden>
    • Re: Button refuse to change the title!!!!
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Multi windows in Document-based app, but 1 Nib
  • Next by Date: Re: Button refuse to change the title!!!!
  • Previous by thread: Re: Multi windows in Document-based app, but 1 Nib
  • Next by thread: Re: Button refuse to change the title!!!!
  • Index(es):
    • Date
    • Thread