Re: Modifying NSDatePicker for automatically generated predicate row templates
Re: Modifying NSDatePicker for automatically generated predicate row templates
- Subject: Re: Modifying NSDatePicker for automatically generated predicate row templates
- From: Peter Ammon <email@hidden>
- Date: Tue, 21 Oct 2008 13:45:28 -0700
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?
Thanks for any info or pointers,
Barry
You don't need to make a subclass. Just change the view directly.
[[[template templateViews] objectAtIndex:2] setDatePickerElements:...]
-Peter
_______________________________________________
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