Re: NSSearchField problem under 10.3
Re: NSSearchField problem under 10.3
- Subject: Re: NSSearchField problem under 10.3
- From: Frédéric Testuz <email@hidden>
- Date: Sat, 2 Jul 2005 18:03:50 +0200
Le 2 juil. 05, à 16:51, Alan Dail a écrit :
Does anyone have any idea what's causing my problem here?
I don't think there is a problem. I have also a search field without
the recent searches items and I must do the same operation to update
checkmarks.
I think you have to do this because searchMenuTemplate don't return the
instance use to display the menu, but a template :-). And each time the
search field show the menu, the displayed menu is construct from the
template.
Fred
On Jun 30, 2005, at 3:01 PM, Alan Dail wrote:
I developed a view with an NSSearchField in 10.4 that is having a
strange problem running in 10.3. I have a menu created in interface
builder, who's items are connected to methods of my view controller
class. In 10.4, these menu items are active, in 10.3, they are
disabled. Everything else works in my view except for this and I can
find nothing in the documentation to explain the difference. If it
matters, this is a Cocoa dialog I am calling from a MacApp based
carbon app. We are using many different Cocoa views, and this is the
only major problem we have run into (other than not being able to tie
the dialogs to the menu bar, which is an annoyance we haven't solved
yet either).
Another thing about our using NSSearchField, I've found that to
update the checkmarks, I have to first update my menu, then call
[[searchField cell] setSearchMenuTemplate:menu];
to actually update the menu. This is despite the fact that we are
not currently supporting recent searches. Is this the correct way to
do this, or is it possible to check/uncheck the items in this menu
directly.
Alan
Alan
_______________________________________________
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