• 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: NSSearchField search template through IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSearchField search template through IB


  • Subject: Re: NSSearchField search template through IB
  • From: Bjoern Kriews <email@hidden>
  • Date: Mon, 23 Feb 2004 21:00:19 +0100

On 23.02.2004, at 20:14, Francisco Tolmasky wrote:

What are the details of setting the search template menu through IB?
Every time I set it, all my options are disabled for some reason.
Regardless of whether they have preset tags or are just custom items
(to implement Mail-like limitations). Is there anything I'm forgetting
to do. Also, when I set the tags in IB, do I have to just set the
equivilant number (for example 1000 instead of
NSSearchFieldRecentsTitleMenuItemTag) or is there a way to write that
out in IB?

I have fiddled around with that a lot - the solution I came up with to
still have the convenience of menu building in IB is:

- (void) initMagic {
// have to do this - item enabling goes bonkers when using the searchMenuTemplate outlet
[[magicField cell] setSearchMenuTemplate: [magicMenu copy]]; // leak some memory
}

And yes, I think you have to use tag numbers in IB (which is not beautiful, I admit)

I don't know WHY this works and I'd be happy if someone could shed some light on it.

Regards, Bjoern
_______________________________________________
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: NSSearchField search template through IB
      • From: "Louis C. Sacha" <email@hidden>
References: 
 >NSSearchField search template through IB (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Position of the selection cursor in an NSTextField
  • Next by Date: Re: Can't open specified type in NSOpenPanel
  • Previous by thread: NSSearchField search template through IB
  • Next by thread: Re: NSSearchField search template through IB
  • Index(es):
    • Date
    • Thread