Re: NSRect in swift?
Re: NSRect in swift?
- Subject: Re: NSRect in swift?
- From: Rick Mann <email@hidden>
- Date: Wed, 04 Jun 2014 15:14:58 -0700
I did. Turns out, in iOS, it's CGRect. Apparently in OS X it's still NSRect. This is problematic, as I write code shared between both platforms, and I'm okay with getting rid of the older, redundant NSRect (in 64-bit, they're equivalent).
On Jun 4, 2014, at 15:07 , Carl Leiby <email@hidden> wrote:
> Have you tried
> import Foundation
>
>
>
>
>
> On Wed, Jun 4, 2014 at 3:03 PM -0700, "Rick Mann" <email@hidden> wrote:
>
> Ah, it seems that CGRect is known. I'm okay with getting rid of the redundant NS types, but I wish the docs reflected this. Feedback already sent.
>
> On Jun 4, 2014, at 14:55 , Rick Mann
> wrote:
>
> > I'm going through some of the examples to get a taste of Swift. I'm unable to use NSRect as described (e.g. https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/WorkingWithCocoaDataTypes.html), "error: use of unresolved identifier 'NSRect'".
> >
> > Where is that defined? That is, what do I need to import?
> >
> > Thanks.
> >
> > --
> > Rick
> >
> >
> >
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Xcode-users mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
> --
> Rick
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden