Re: NSTextAlignment Enum?
Re: NSTextAlignment Enum?
- Subject: Re: NSTextAlignment Enum?
- From: "Mills, Steve" <email@hidden>
- Date: Mon, 01 Sep 2014 17:30:20 +0000
- Thread-topic: NSTextAlignment Enum?
On Sep 1, 2014, at 11:44, "Keary Suska" <email@hidden> wrote:
>
> One future-proof approach that occurred to me is to declare your own enum:
>
> typedef NS_ENUM(NSInteger, MYTextAlignment) {
> MYInvalidTextAlignment = -1,
> MYLeftTextAlignment = NSLeftTextAlignment,
> MYRightTextAlignment = NSRightTextAlignment,
> MYCenterTextAlignment = NSCenterTextAlignment,
> MYJustifiedTextAlignment = NSJustifiedTextAlignment,
> MYNaturalTextAlignment = NSNaturalTextAlignment
> };
I was thinking of that too, but it doesn't future-proof it if Apple adds more enums, especially if new ones are out of the max signed int range.
Steve via iPad
_______________________________________________
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