Re: "No options" constant
Re: "No options" constant
- Subject: Re: "No options" constant
- From: "T.J. Usiyan" <email@hidden>
- Date: Thu, 17 Oct 2013 11:11:45 -0700
I am not sure that there is a catch-all 'no options' constant.
I did find framework specific examples like
kCFDateFormatterNoStyle, kCFNumberFormatterNoStyle, kCollectionDontWantTag,
kCollectionDontWantId, kCollectionDontWantSize,
kCollectionDontWantAttributes, kCollectionDontWantIndex,
kCollectionDontWantData, kCollectionNoAttributes
TJ
On Thu, Oct 17, 2013 at 10:48 AM, Sixten Otto <email@hidden> wrote:
> This has been driving me crazy, and hopefully someone on the list will know
> off the top…
>
> I remember coming across a reference somewhere recently to a constant
> defined in Foundation or Core Foundations (I think!) that has a zero value,
> and semantically means "I choose no options". Something that would be used
> in place of a literal zero when calling methods like +[UIView
> animateWithDuration:delay:options:animations:completion:] or -[NSString
> rangeOfString:options:] that take a set of option flags.
>
> Of course, I didn't bookmark the reference. And now I have NO IDEA where I
> saw it. Google, NSHipster, and searching the documentation haven't turned
> anything up. (And that fruitless searching bugs me way more than continuing
> to use a literal zero.)
>
> Can anyone jog my memory?
>
> Thanks,
> Sixten
> _______________________________________________
>
> 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
_______________________________________________
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