• 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
Resizable Text Cell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizable Text Cell in NSTableView


  • Subject: Resizable Text Cell in NSTableView
  • From: Seth Willits <email@hidden>
  • Date: Mon, 25 Feb 2008 12:21:41 -0800

Howdy,


I'm trying to get an editing text cell to resize when changing the value (rename a playlist in iTunes, any file in Finder's list mode, a file in Finder's sidebar, or modify any field in Address Book). I tested the NSText methods for resizing with the code below, but that didn't work. The text field remains the same size. Any ideas?



- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj; { textObj = [super setUpFieldEditorAttributes:textObj]; [textObj setHorizontallyResizable:YES]; [textObj setMinSize:NSMakeSize(0.0, [textObj minSize].height)]; [textObj setMaxSize:NSMakeSize(200.0, [textObj maxSize].height)]; return textObj; }




-- Seth Willits




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Resizable Text Cell in NSTableView
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: Finding a relative date
  • Next by Date: Re: NSInvocation question
  • Previous by thread: Re: Finding a relative date
  • Next by thread: Re: Resizable Text Cell in NSTableView
  • Index(es):
    • Date
    • Thread