Re: Unknown class ‘MyCustomView', using 'NSView' instead
Re: Unknown class ‘MyCustomView', using 'NSView' instead
- Subject: Re: Unknown class ‘MyCustomView', using 'NSView' instead
- From: John Joyce <email@hidden>
- Date: Sun, 22 Feb 2015 20:39:12 +0900
Why not use a framework ?
This is exactly why they exist. To hold resources that can't be in a lib.
Xcode 6 makes frameworks easy.
Thanks!
John Joyce
Sent from my iPhone
> On 2015/02/22, at 20:17, Erwin Namal <email@hidden> wrote:
>
> Thank you for your reply.
> I already use both Other linker flags “-ObjC” and “-all_load” in the library, in its bundle target (though it is useless I think) and in the application including the library and the bundle with the nib.
> Then, I load the nib in the bundle by using :
>
>> initWithNibName:nibName bundle:libraryBundle
>
> The other linker flags did solve the issue of categories in the library not visible in the application.
> The thing I don’t understand is that I get the warning, but my application works fine. It shouldn’t if NSView was indeed used instead of MyCustomView.
>
> Where do you put your linkerhack class ? In the library or in the app ?
>
> Thanks for your help
> – E
_______________________________________________
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