Strange white-ish tint on images in a table olumn

2011-09-08 Thread dvlchat
Hello, I see something weird happening with images displayed in a NSTableView's column. Until now, the table contents was bound to the arrangedObjects of a controller, the model of which containing image paths. BTW, I hadn't realized that until now, but it seems ok to provide paths (NSStr

Custom universal types, but outside an application

2011-09-08 Thread dvlchat
Hello, I know how to create an application and instruct the system about a custom type and its use by using both CFBundleDocumentTypes and UTExportedTypeDeclarations in Info.plist. My problem: this type is not actually defined and used by an application, but by a preference pane. It seems

Re: Custom universal types, but outside an application

2011-09-08 Thread dvlchat
I wrote: > I know how to create an application and instruct the system about a > custom type and its use by using both CFBundleDocumentTypes and > UTExportedTypeDeclarations in Info.plist. I forgot another question: the type represents directories structured like framework bundles. Those director

Re: Custom universal types, but outside an application

2011-09-09 Thread dvlchat
"Stephen J. Butler" écrivait: > Shot in the dark, but looking at LSInfo.h it seems LSRegisterURL (with > your bundle URL) might work: Doesn't. Out of curiosity, I also tried lsregister directly from the command-line, but (probably as expected) it returns a 'not an application' error. :-(

Re: Custom universal types, but outside an application

2011-09-09 Thread dvlchat
Lee Ann Rucker écrivait: > When you create the bundle, set NSFileExtensionHidden on it. OK, so IIUYC, this implicitely means that you need to do this for every such directory. In other words, there is no way to specify that a custom type, reified as a directory, should have its extension hidde

Detecting a native Cocoa app ?

2013-02-07 Thread dvlchat
Hi there, I have developped a SIMBL plugin that does some hacking on the GUI of the target application (menus and stuff). However, it works well only on native Cocoa applications (it may crash others). I would like to automatically detect when the target application is native cocoa, so that I

Re: Detecting a native Cocoa app ?

2013-02-07 Thread dvlchat
"William J. Cheeseman" wrote: > On Feb 7, 2013, at 3:32 AM, dvlc...@gmail.com wrote: > >> I would like to automatically detect when the target application is >> native cocoa, so that I may switch the plugin off otherwise. How would >> you do that ? > > > ULI's answer makes sense if you are asking

Re: Detecting a native Cocoa app ?

2013-02-07 Thread dvlchat
Kyle Sluder wrote: > I distinctly recall the moderator explaining that haxies are off-topic > for this list. They cost developers time and money debugging phantom > issues in our apps. Well, the topic is not the plugin itself, but a technical point that is also of interest for non-haxies (e.

Icons in the menubar

2013-02-08 Thread dvlchat
Hello, I've seen some applications use an icon instead of a title in the menubar (this is often the case for the "Scripts" menu). I know about the setImage: method, but for some reason, it doesn't seem to work when you use it on the first item in the menubar (the "Apple" menu): instead of displ