>
> 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
>
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
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
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
> 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
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