Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSearchField bug not fixed yet?



On Mon, 13 Nov 2006 14:29:34 +0100, Stephane <email@hidden> said:
>According to the archive, the NSSearchField is buggy since 2004 when
>it comes to the searchTemplateMenu APIs.
>
>It looks like this bug is not fixed in 10.4.8 yet.
>
>Basically, it looks as if the searchTemplateMenu method of
>NSSearchFieldCell returns a copy of the template menu instead of a
>autorelease-retained instance.
>
>This could explain why changing the state of a NSMenuIem of the
>search template menu is just not working.
>
>Is there any workaround better than just setting the
>searchTemplateMenu anew when you want to change a NSMenuItem state?

I simply change the menu item's state in my validateMenuItem implementation.
m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.