Re: UIKit and Swift

2014-06-15 Thread Roland King
> > Ah ok, figured it out; your code gave me a hint. If you have a String, the > methods that are in NSString just work on it. If you want the extensions, you > have to be explicit about NSString: > > drawable.name is a String?: > > > // does not work, sizeWithFont not found >

Re: UIKit and Swift

2014-06-11 Thread Greg Parker
On Jun 11, 2014, at 7:29 AM, Jim Geist wrote: > On Jun 10, 2014, at 11:50 PM, Roland King wrote: >> On 11 Jun, 2014, at 2:12 pm, Kyle Sluder wrote: >>> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: Anyone know off the top of their head how to import an Obj-C extension into Swift? Sp

Re: UIKit and Swift

2014-06-11 Thread Jim Geist
On Jun 10, 2014, at 11:50 PM, Roland King wrote: > > On 11 Jun, 2014, at 2:12 pm, Kyle Sluder wrote: > >>> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: >>> >>> Anyone know off the top of their head how to import an Obj-C extension into >>> Swift? Specifically, I need the NSString extensio

Re: UIKit and Swift

2014-06-10 Thread Roland King
On 11 Jun, 2014, at 2:12 pm, Kyle Sluder wrote: >> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: >> >> Anyone know off the top of their head how to import an Obj-C extension into >> Swift? Specifically, I need the NSString extensions from UIKit. > > `import UIKit` doesn’t work? Of course, t

Re: UIKit and Swift

2014-06-10 Thread Kyle Sluder
> On Jun 10, 2014, at 10:57 PM, Jim Geist wrote: > > Anyone know off the top of their head how to import an Obj-C extension into > Swift? Specifically, I need the NSString extensions from UIKit. `import UIKit` doesn’t work? Of course, that will only work on platforms where UIKit exists (iOS de

UIKit and Swift

2014-06-10 Thread Jim Geist
Anyone know off the top of their head how to import an Obj-C extension into Swift? Specifically, I need the NSString extensions from UIKit. Thanks!! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato