• 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
Resizing NSButton doesn't clear previous size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizing NSButton doesn't clear previous size


  • Subject: Resizing NSButton doesn't clear previous size
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Sun, 27 Jun 2004 20:23:11 -0700

1) Create a NSButton object with a long title like: "Select Montreal".
2) Reset the title to a smaller string like: "Select Paris" per
following statements:

[selectCity_Button setTitle:buttonStr];
[selectCity_Button sizeToFit];
[selectCity_Button display];

3) View the new button. What you'll see is a piece of the previous
button that didn't get erased from the screen: "...eal"

Ric.

Environment: XCode 1.2 running Objective-C/Cocoa
OS: Panther (10.3.4)
Box: iBook G3
_______________________________________________
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.


  • Follow-Ups:
    • Re: Resizing NSButton doesn't clear previous size
      • From: Andreas Mayer <email@hidden>
    • Re: Resizing NSButton doesn't clear previous size
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: simple printing question
  • Next by Date: Re: Is that really a bug at all? (was: Re: Ugly bug in Foundation, beware!)
  • Previous by thread: [ANN] Graphviz 1.13 (v13) for Mac OS X
  • Next by thread: Re: Resizing NSButton doesn't clear previous size
  • Index(es):
    • Date
    • Thread