On Tue, Oct 21, 2008 at 3:18 PM, Peter Ammon <[EMAIL PROTECTED]> wrote:
>
> On Oct 21, 2008, at 2:21 PM, Ashley Clark wrote:
>
>> 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.
>
> The order is constant.

Worked like a charm. Thanks.

- Barry
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to