• 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: Customizing an NSSearchField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing an NSSearchField


  • Subject: Re: Customizing an NSSearchField
  • From: Tim Lucas <email@hidden>
  • Date: Mon, 15 Nov 2004 00:02:03 +1100

On 14/11/2004, at 12:44 PM, Tim Lucas wrote:
Create an NSView subclass that displays the icon in its drawRect and displays a sheet containing the predefined messages on mouseDown.

Add your NSView subclass to the textview using [textView addSubView:...].

I was actually quite wrong. There is quite a bit of work needed to add stuff into NSTextFields or NSTextViews.


You need to at least subclass both NSTextField and NSTextFieldCell. You may also need to provide a custom NSTextView class as a field editor.

Anybody know of a way you can do this without needing a custom field editor?

-- tim lucas

http://www.toolmantim.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Customizing an NSSearchField (From: Larry Gerndt <email@hidden>)
 >Re: Customizing an NSSearchField (From: Tim Lucas <email@hidden>)

  • Prev by Date: Possible to copy bundle's framework to file system?
  • Next by Date: Re: crossplatform C++, #ifdef
  • Previous by thread: Re: Customizing an NSSearchField
  • Next by thread: Re: Customizing an NSSearchField
  • Index(es):
    • Date
    • Thread