Re: Unknown class ‘MyCustomView', using 'NSView' instead

2015-02-22 Thread Erwin Namal
19:17, Erwin Namal 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

Re: Unknown class ‘MyCustomView', using 'NSView' instead

2015-02-22 Thread Erwin Namal
you put your linkerhack class ? In the library or in the app ? Thanks for your help – E > On Feb 22, 2015, at 05:45 , Roland King wrote: > > >> On 22 Feb 2015, at 06:03, Erwin Namal > <mailto:erwin.na...@gmail.com>> wrote: >> >> Dear All, >> >&

Unknown class ‘MyCustomView', using 'NSView' instead

2015-02-21 Thread Erwin Namal
Dear All, I am currently moving some of my app’s code out in a static library. I have subclasses of NSViewController and their nib. Searching on the net I fond a way to deal with the nibs, by adding a bundle target in the library for all the .xib files and importing the bundle as a resource in

Re: Modal sheet, full screen & swipe instability

2014-09-05 Thread Erwin Namal
Dear All, I have issues with a fullscreen app. Wh a sheet is open (beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:), and I swipe to Desktop and then swipe back to the app, the screen remains for 2 seconds on the app and then swipes again back to Desktop without my interactio

Modal sheet, full screen & swipe instability

2014-09-04 Thread Erwin Namal
Dear All, I have issues with a fullscreen app. Wh a sheet is open (beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:), and I swipe to Desktop and then swipe back to the app, the screen remains for 2 seconds on the app and then swipes again back to Desktop without my interactio

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
This is an interesting article. Thank you. – E On Aug 26, 2013, at 2:12 PM, Shane Stanley wrote: > On 26/08/2013, at 9:40 PM, Erwin Namal wrote: > >> I still have one question: How do I get the size in points of an menu extra >> icon ? > > You might want to read this

Re: Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
On Aug 26, 2013, at 9:08 AM, Lee Ann Rucker wrote: > Create an NSImage with representations in both sizes: > > http://lists.apple.com/archives/cocoa-dev/2013/Aug/msg00374.html On Aug 26, 2013, at 12:23 PM, Marcel Weiher wrote: > > The NSImage documentation suggests that imageWithSize:flippe

Retina / non retina : Drawing icons

2013-08-26 Thread Erwin Namal
Hi, My app's menu extra icon should reflect meaningful information to the user. However, there are too many cases to draw icons beforehand. It would be easier to programatically prepare the icon on the fly. What would be the best way to get the size of the NSImage to draw (in points or in pixel