LSCopyAllRoleHandlersForContentType is unhelpful (Was: Content types processable by an application)

2010-10-31 Thread Dave DeLong
So, after playing around some more, I've gone ahead with parsing the output of lsregister -dump to acquire a list of all known UTIs, and then figuring out what applications can handle those types. (It's a bit longer, but it gets me the information I need) However, I've noticed something intere

Re: audio-specific UI component libraries for Cocoa?

2010-10-31 Thread Stephen Blinkhorn
On 31 Oct 2010, at 15:40, Paul Davis wrote: On Sun, Oct 31, 2010 at 5:20 PM, Kevin Dixon wrote: I was wondering if there are any UI component libraries for audio controls available for Cocoa? The standard UI components (NS* family) have some short comings when it comes to dealing with audio.

Shadow on a Borderless Window

2010-10-31 Thread Ajay Sabhaney
Hello list, I am creating a window with a borderless style mask applied. Even though content is drawn, the shadow of the window is much less intense than normal windows. I've tried the setHasShadow: setter and using the invalidateShadow method, however neither work. I've found one similar po

Re: Problem using zPosition on layer backed views

2010-10-31 Thread Kyle Sluder
On Oct 31, 2010, at 1:40 PM, Gideon King wrote: > Thanks Kyle > > That's what I thought before I went into it to start with, but I found posts > from people who appeared to be using it on layer backed views, and the only > problem they said they were having was that it didn't animate the chang

Re: Problem using zPosition on layer backed views

2010-10-31 Thread Gideon King
Thanks Kyle That's what I thought before I went into it to start with, but I found posts from people who appeared to be using it on layer backed views, and the only problem they said they were having was that it didn't animate the changes to the z order. I wonder if things are different on iOS

Re: Determine current mouse cursor position

2010-10-31 Thread eveningnick eveningnick
> If you want the *current* mouse location at the time you decide to display > the window, use +[NSEvent mouseLocation] or -[NSWindow > mouseLocationOutsideOfEventStream]. > > However, it's more than possible that you should be using the mouse > location *synchronized with the application's event s

Re: Problem using zPosition on layer backed views

2010-10-31 Thread Kyle Sluder
On Oct 31, 2010, at 5:13 AM, Gideon King wrote: > I have a view with several subviews, all layer backed. These subviews are > siblings. I want to bring one of them in front of the others, so I set the > zPosition of the others to a zPosition of 1 and the one I want in front to a > zPosition of

Re: Get wrong tag value from NSPopupButtonCell

2010-10-31 Thread Kyle Sluder
On Oct 31, 2010, at 3:46 AM, Reinhard Segeler wrote: > Created a test project, to isolate the problem with the same results. Filed a > bug report to Apple. Why not post your test project for us to look at? --Kyle Sluder___ Cocoa-dev mailing list (Co

Re: borderless button - hilight on click

2010-10-31 Thread Mitchell Livingston
That's why I have it set as a template and let the OS do the coloring. That way any color settings, changes in design between OS releases, etc. are the operating system's responsibility. Makes my life a lot easier and keeps the app consistent with other apps. Cheers, Mitch On Oct 31, 2010, at

Re: Determine current mouse cursor position

2010-10-31 Thread Quincey Morris
On Oct 31, 2010, at 09:16, eveningnick eveningnick wrote: > I need to implement a functionality like Microsoft Word does for popup > windows - display a semi transparent popup window with the alpha value > calculated by the distance from the mouse cursor to the edge of the window. > It is a requir

Re: Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application

2010-10-31 Thread Sherm Pendley
On Sun, Oct 31, 2010 at 9:31 AM, eveningnick eveningnick wrote: > Hello > How, using an ordinary application (started by "doubleclicking" from > /Applications), i could create/modify/delete that file? > Is it possible at all, according to OS X current security model? Not unless the permissions fo

Determine current mouse cursor position

2010-10-31 Thread eveningnick eveningnick
Hello I need to implement a functionality like Microsoft Word does for popup windows - display a semi transparent popup window with the alpha value calculated by the distance from the mouse cursor to the edge of the window. It is a requirement for me, not just a decoration to look in a neat mac sty

borderless button - hilight on click

2010-10-31 Thread Mitchell Livingston
I'm trying to mimic iTunes 10 and iPhoto '11's buttons on the bottom of the window, where it's a simple black image that can be toggled to an on state (blue). I have that working using a template image (it's just black and is automatically made blue when enabled), but when I click and hold the b

Operating with a file /Library/LaunchAgents/my.application.plist from a non-root application

2010-10-31 Thread eveningnick eveningnick
Hello How, using an ordinary application (started by "doubleclicking" from /Applications), i could create/modify/delete that file? Is it possible at all, according to OS X current security model? (Leopard and Snow Leopard) Maybe i could display a "User login" inbox somehow then, to let user authori

Re: Writing an Uninstaller

2010-10-31 Thread eveningnick eveningnick
Thank you guys, i have written an Applescript for all that. That is easy, and flexible :) And it can delete its own bundle, which is important for me ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator c

Problem using zPosition on layer backed views

2010-10-31 Thread Gideon King
I have a view with several subviews, all layer backed. These subviews are siblings. I want to bring one of them in front of the others, so I set the zPosition of the others to a zPosition of 1 and the one I want in front to a zPosition of 2. Nothing happens - the one I want in front is still dra

Re: Get wrong tag value from NSPopupButtonCell

2010-10-31 Thread Reinhard Segeler
Created a test project, to isolate the problem with the same results. Filed a bug report to Apple. Thanks -- Reinhard Am 29.10.2010 um 23:51 schrieb Quincey Morris: On Oct 29, 2010, at 14:02, Reinhard Segeler wrote: Can't get the correct tag value in this way. What's wrong? NSP

Re: Menulet Problem

2010-10-31 Thread Reinhard Segeler
Can't see how your code is really working, but could it be, that the menuItem looses its connection to the textbow... -- Reinhard Am 30.10.2010 um 23:27 schrieb Jozef Dransfield: I have a status item which I'm initialising with a menu like so: statusItem = [[[NSStatusBar systemStatusB