• 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:NSTextField with custom cell - is it even possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:NSTextField with custom cell - is it even possible?


  • Subject: Re:NSTextField with custom cell - is it even possible?
  • From: Brian Webster <email@hidden>
  • Date: Sun, 21 Jul 2002 14:11:33 -0500

On Sunday, July 21, 2002, at 11:13 AM, cocoa-dev-
email@hidden wrote:

So is it even possible to change the cell in an NSTextField - or indeed
any single cell control - and use it in interface builder?

You should be able to get it to use the custom cell by dragging a custom view instead of the NSTextField palette item and then choosing your text field subclass. That way, IB won't know anything about the cell and your view will be created normally. The drawback to this is that you won't be able to set up the text field's attributes in IB, so you'll have to do that in awakeFromNib instead.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: NSBeginAlertSheet and (void*)contextInfo
  • Next by Date: Opening a drawer on program launch?
  • Previous by thread: NSTextField with custom cell - is it even possible?
  • Next by thread: Catching key events in NSTextField
  • Index(es):
    • Date
    • Thread