Moving CALayer and content transition animation

2012-06-07 Thread Markus Spoettl
Hello, I have a delegate-drawn CALayer which uses a kCATransitionFade content transition animation set in -actionForLayer:forKey: of its delegate. This works fine if the layer is not moving. When the content changes, the new content simply fades in, the old one fades out. However, when th

Desktop geometry problem

2012-06-07 Thread Gregory Weston
Does anyone know of existing code or a trivial technique to get a CGPath or NSBezierPath that describes the shape of the desktop? I'll write and share it if it's not out there, but I'd rather not reinvent any wheels. My interests are: 1. It should be the actual perimeter of the desktop, not just

Re: NSRunningApplication isTerminated bug

2012-06-07 Thread Michael Babin
On Jun 7, 2012, at 4:51 AM, Patrick Robertson wrote: > I seem to be having a problem with terminating apps and observing the > 'terminated' property of NSRunningApplications. If you run my sample code > (attached, and below), you will notice that even though Safari has quit > (its icon has disappe

Re: NSTextView

2012-06-07 Thread ecir hana
On Thu, Jun 7, 2012 at 5:47 AM, koko wrote: > On an NSTextView I call -selectAll: and then -insertText: > > This scrolls the view to the end of the text. > > How would I scroll the view to the top of the text? > Just before the insertText: get the current scroll position and then restore it: ht

Is there a way to detect if user adds Printer?

2012-06-07 Thread Marc Van Olmen
hi, Is there a way to detect if the user added/removed a printer while my app is running? I'm currently displaying a popup with the contents of [NSPrinter printerNames] but my app would like to be notified when changes are happening to this contents. thanks for some ideas. marc

A color well in a table view?

2012-06-07 Thread H. Miersch
In my Mac app I have a table view which so far only displays text and numbers. Now I'd like to put color wells in one column (to supply colors for the lines in the diagram) and checkboxes in another (to decide whether each line should be drawn or not). Can I do that? If so, what's the best way t

Re: A color well in a table view?

2012-06-07 Thread Sean McBride
On Thu, 7 Jun 2012 13:53:49 +0100, H. Miersch said: >In my Mac app I have a table view which so far only displays text and >numbers. Now I'd like to put color wells in one column (to supply colors >for the lines in the diagram) and checkboxes in another (to decide >whether each line should be draw

Re: A color well in a table view?

2012-06-07 Thread Corbin Dunn
On Jun 7, 2012, at 8:32 AM, Sean McBride wrote: > On Thu, 7 Jun 2012 13:53:49 +0100, H. Miersch said: > >> In my Mac app I have a table view which so far only displays text and >> numbers. Now I'd like to put color wells in one column (to supply colors >> for the lines in the diagram) and check

Re: Is there a way to detect if user adds Printer?

2012-06-07 Thread mvo
hi, To answer my question: I used: https://github.com/kballard/NotificationWatcher Noticed that com.apple.ColorSync.DeviceRegisteredNotification and com.apple.ColorSync.DeviceUnregisteredNotification Were send out also this code I saw yesterday http://www.cocoabuilder.com/archive/cocoa/103

Re: Moving CALayer and content transition animation

2012-06-07 Thread Conrad Shultz
On 6/7/12 2:14 AM, Markus Spoettl wrote: > Hello, > > I have a delegate-drawn CALayer which uses a kCATransitionFade content > transition animation set in -actionForLayer:forKey: of its delegate. > > This works fine if the layer is not moving. When the content changes, > the new content simply

Re: Moving CALayer and content transition animation

2012-06-07 Thread Markus Spoettl
On 6/7/12 9:39 PM, Conrad Shultz wrote: Is this to be expected? If so, what is the proper way of handling this? Surely there must be something basic I'm missing again. Thanks for any pointers! I haven't had a chance to test it myself, but what if you set the transition animation on the layer's

Re: Moving CALayer and content transition animation

2012-06-07 Thread Conrad Shultz
On 6/7/12 1:12 PM, Markus Spoettl wrote: > On 6/7/12 9:39 PM, Conrad Shultz wrote: >>> Is this to be expected? If so, what is the proper way of handling this? >>> Surely there must be something basic I'm missing again. >>> >>> Thanks for any pointers! >> >> I haven't had a chance to test it myself,

Tool for creating application icon

2012-06-07 Thread Luc Van Bogaert
Hoping this is not too off topic on this list, I would like to know what tools developers here have used to create their application icons. I've found a few candidates on the App Store, but before spending my money on one of them, I thought I'd ask here for opinions. The idea is to create a 512x

Re: Tool for creating application icon

2012-06-07 Thread Charles Srstka
On Jun 7, 2012, at 3:56 PM, Luc Van Bogaert wrote: > Hoping this is not too off topic on this list, I would like to know what > tools developers here have used to create their application icons. I've found > a few candidates on the App Store, but before spending my money on one of > them, I tho

Re: Animating source view design advice.

2012-06-07 Thread Demitri Muna
Hi, Thanks Corbin for the reply. For some reason I completely forgot that NSOutlineView was a subclass of NSTableView. Yes, of course that is the best (and should have been obvious!) solution. Cheers, Demitri --- On May 30, 2012, at 2:57 PM, Corbin Dunn wrote: > On May 30, 2012, at 11:37 AM,

Fwd: Tool for creating application icon

2012-06-07 Thread Patrick Robertson
> I’m definitely not an icon designer myself, but it’s my understanding that people generally just use Photoshop, or, if your budget is tight, one of its less-expensive equivalents such as Pixelmator. All you need is a set of images in an alpha-containing format like .png, scaled to different sizes

Re: Tool for creating application icon

2012-06-07 Thread Gleb Dolgich
On 7 Jun 2012, at 21:56, Luc Van Bogaert wrote: > Hoping this is not too off topic on this list, I would like to know what > tools developers here have used to create their application icons. I've found > a few candidates on the App Store, but before spending my money on one of > them, I thou

Re: Tool for creating application icon

2012-06-07 Thread Graham Cox
On 08/06/2012, at 9:00 AM, Gleb Dolgich wrote: > > On 7 Jun 2012, at 21:56, Luc Van Bogaert wrote: > >> Hoping this is not too off topic on this list, I would like to know what >> tools developers here have used to create their application icons. I've >> found a few candidates on the App Sto

Re: Tool for creating application icon

2012-06-07 Thread Lee Ann Rucker
On Jun 7, 2012, at 5:25 PM, Graham Cox wrote: > > On 08/06/2012, at 9:00 AM, Gleb Dolgich wrote: > >> >> On 7 Jun 2012, at 21:56, Luc Van Bogaert wrote: >> >>> Hoping this is not too off topic on this list, I would like to know what >>> tools developers here have used to create their applic

Re: Tool for creating application icon

2012-06-07 Thread Roland King
I've done remarkably well with Inkscape. Ok it runs on X11, it has a learning curve, but it's very featured and even I, terrible at anything artistic, have managed to grind out some decent graphics with it, certainly good enough for buttons and icons. On 8 Jun, 2012, at 8:25, Graham Cox wro

Re: Desktop geometry problem

2012-06-07 Thread Graham Cox
On 07/06/2012, at 9:23 PM, Gregory Weston wrote: > Does anyone know of existing code or a trivial technique to get a CGPath or > NSBezierPath that describes the shape of the desktop? I'll write and share it > if it's not out there, but I'd rather not reinvent any wheels. My interests > are: >

Re: Desktop geometry problem

2012-06-07 Thread gweston
On Jun 07, 2012, at 10:22 PM, Graham Cox wrote: On 07/06/2012, at 9:23 PM, Gregory Weston wrote: Does anyone know of existing code or a trivial technique to get a CGPath or NSBezierPath that describes the shape of the desktop? I'll write and share it if it's not out there, but I'd rather no

Re: Desktop geometry problem

2012-06-07 Thread Graham Cox
On 08/06/2012, at 12:30 PM, gweston wrote: > On Jun 07, 2012, at 10:22 PM, Graham Cox wrote: > >> >> On 07/06/2012, at 9:23 PM, Gregory Weston wrote: >> >> > Does anyone know of existing code or a trivial technique to get a CGPath >> > or NSBezierPath that describes the shape of the desktop?

Re: Desktop geometry problem

2012-06-07 Thread Kyle Sluder
On Jun 7, 2012, at 7:30 PM, gweston wrote: > On Jun 07, 2012, at 10:22 PM, Graham Cox wrote: > > > On 07/06/2012, at 9:23 PM, Gregory Weston wrote: > >> Does anyone know of existing code or a trivial technique to get a CGPath or >> NSBezierPath that describes the shape of the desktop? I'll w