• 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: NSPredicateEditor losing nextKeyView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicateEditor losing nextKeyView


  • Subject: Re: NSPredicateEditor losing nextKeyView
  • From: Ashley Clark <email@hidden>
  • Date: Tue, 23 Feb 2010 15:22:32 -0600

On Feb 23, 2010, at 2:31 PM, Trygve Inda wrote:

>> On Feb 21, 2010, at 9:50 PM, Trygve Inda wrote:
>>
>>> In my sheet, I have a "name" NSTextField and an NSPredicateEditor.
>>> Initially, the tab key works to jump between my name field and the first
>>> match field in the predicate editor.
>>>
>>> However, after changing any of the menus in the line of my predicate editor,
>>> the tab key no longer allows the keyfield to rotate out of the
>>> NSPredicateEditor back to other fields in my sheet.
>>>
>>> Is this a bug or do I need to hook up something to make it work?
>>
>> I noticed this happening sometimes in my code too. As a quick fix I just
>> issued a delayed -recalculateKeyViewLoop message on any change of the search
>> predicate when the view was visible.
>
> It does the same thing when adding a row but...
>
> NSRuleEditorRowsDidChangeNotification is only sent when changing popup menus
> or text, not when simply adding a row.
>
> Thoughts?

I have the predicate editor bound to a predicate in my controller. Then in my -setPredicate: method of the controller I'm issuing a delayed recalculation of the key-view loop.

You could probably just observe for changes to the predicate on the predicate editor itself but I'm not sure if NSPredicateEditor sends KVO notifications or not for that property.


Ashley

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NSPredicateEditor losing nextKeyView (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Core Data: Custom to-many relationship setter not being invoked
  • Next by Date: Re: Sheet not appearing normally...the first time
  • Previous by thread: Re: NSPredicateEditor losing nextKeyView
  • Next by thread: Determine if only single instance is running.
  • Index(es):
    • Date
    • Thread