• 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: Modifying NSDatePicker for automatically generated predicate row templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modifying NSDatePicker for automatically generated predicate row templates


  • Subject: Re: Modifying NSDatePicker for automatically generated predicate row templates
  • From: Ashley Clark <email@hidden>
  • Date: Tue, 21 Oct 2008 16:21:55 -0500

On Oct 21, 2008, at 3:45 PM, Peter Ammon wrote:

On Oct 21, 2008, at 9:35 AM, Barry Wark wrote:

I'm using [NSPredicateRowEditorTemplate
templatesWithAttributeKeyPaths:inEntityDescription:] to generate
predicate row templates for a Core Data entity. One of the properties
is a date. Is there any way to change the NSDatePickerElementFlags for
the NSDatePicker in the associated row template (to include hrs:mm) or
do I have to write my own NSPredicateRowTemplate subclass?


You don't need to make a subclass.  Just change the view directly.

[[[template templateViews] objectAtIndex:2] setDatePickerElements:...]

Are the order of the views returned by templateViews guaranteed to remain constant or is it best to iterate over them looking for particular objects? NSDatePicker in this case.


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


  • Follow-Ups:
    • Re: Modifying NSDatePicker for automatically generated predicate row templates
      • From: Peter Ammon <email@hidden>
References: 
 >Modifying NSDatePicker for automatically generated predicate row templates (From: "Barry Wark" <email@hidden>)
 >Re: Modifying NSDatePicker for automatically generated predicate row templates (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: Problems when putting a window between desktop and desktop icons
  • Next by Date: Re: keyUp falling through to window when sheet dismissed
  • Previous by thread: Re: Modifying NSDatePicker for automatically generated predicate row templates
  • Next by thread: Re: Modifying NSDatePicker for automatically generated predicate row templates
  • Index(es):
    • Date
    • Thread