Re: Play/Pause, rew/ff keys ...

2008-11-11 Thread Peter Maurer
So I was hoping someone else had figured this out. :-) A quick look at this list's archive reveals this post ... ... by yours truly, which was later followed by Rogue Amoeba's aforementioned take on this. Look here for the e

Re: Rotating a QTMovie doesn't work the way it used to

2008-11-11 Thread Peter Maurer
I don't know anything about the old QuickTime APIs. But I would suggest the new way to do this is use Core Animation. Thanks for the suggestion! I wasn't too keen on using layers for this, and fortunately, it turned out that I can still rotate single QuickTime tracks successfully. And I gue

Rotating a QTMovie doesn't work the way it used to

2008-10-22 Thread Peter Maurer
Hi, I have a QTMovie in a QTMovieView that I'm trying to rotate (during display) via the following code: -- Movie theMovie = [myQTMovie quickTimeMovie]; long theAngle = 90; // using 90 degrees as an example -- rotating by 180 degrees doesn't work either MatrixRecord theMovieMatrix; GetMo

Re: Invoking 'a Paste' Programmatically

2008-10-11 Thread Peter Maurer
I have global HotKey registered using Carbon, and this HotKey invokes a method in which I'm replacing the contents of the general Pasteboard. [...] I'm wondering if there is a way to programmatically call 'Paste', or if there are any facilities in Cocoa for simulating key presses? Actuall

Re: Deploying application with Growl support

2008-07-09 Thread Peter Maurer
Perhaps this isn't the right place to ask this, but I have a Cocoa application that uses Growl for notifications. Have a look at the bottom of this page: You'll want to use Growl-WithInstaller.framework. If ther

Re: Cover Flow in Cocoa?

2008-05-27 Thread Peter Maurer
I am thinking to use Cover Flow in cocoa app. - Is this a good idea for a desktop/laptop app? - What APIs are available? I wouldn't go as far as calling this an API, but feel free to look at the main header file of my Cover Flow implementation, which is implemented as a stand-alone bundle b

Re: NSString vs NSPathStore2

2008-05-22 Thread Peter Maurer
I am then trying to populate an NSTableView with a filename obtained from a NSOpenPanel. The problem is that NSOpenPanel seems to return a NSPathStore2 and not an NSString, which seems to be causing problems. Is there are a way to convert NSPathStore2 to an NSString? NSPathStore2s are NSSt

Re: A Cocoa means to detect SysPref 'Enable access for assistive devices"

2008-04-23 Thread Peter Maurer
Is there a straight Cocoa means to detect the System Preferences/ Universal Access setting for 'Enable access for assistive devices'? I don't think this counts as Cocoa, but it's better than AppleScript: AXAPIEnabled() Peter. ___ Cocoa-dev mailing

Re: NSOutlineView Problem

2008-04-05 Thread Peter Maurer
i have checkboxes (NSButtonCell) in the first column of NSOutlineView. problem is what should I return as object for that column. Program is crashing there. Try [NSNumber numberWithInt: (isChecked ? NSOnState : NSOffState)]. Also I need to show smaller font in other columns of this outline vi

Re: NSTask failing

2008-04-04 Thread Peter Maurer
I've tried making the arguments only 1 entry in the array, and the same thing; I've both quoting and not quoting the arguments, and the same thing; I've tried using a dash with the options and without, and the same thing--always status=2 (fatal error). You should unquote those paths, becaus

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Peter Maurer
0 libobjc.A.dylib 0x92d066f9 objc_msgSend + 41 1 com.apple.CoreFoundation 0x96d4b720 -[NSMutableArray removeObject:] + 96 This could also be due to another over-released object in the array (which is accessed via -isEqual: or something similar d

Re: Carbon Menu in Cocoa app

2008-03-19 Thread Peter Maurer
I have tried the MenuRef _NSGetCarbonMenu(NSMenu* aMenu); but my menuRef always gets 0x0. Is this private API still available ? Did you remember to make the NSMenu actually create its underlying Carbon menu before trying to get it via _NSGetCarbonMenu()? You can do so by temporarily addin

Re: Prevent application activation after dragging items to the Dock icon?

2008-03-18 Thread Peter Maurer
[applicationShouldHandleReopen:hasVisibleWindows:] means "clicked on its icon in the Dock". I.e the actions that are used to launch an app with no documents. It does not apply to opening documents, even if the Dock is involved. Indeed. And I think this one is more about "What happens when

Prevent application activation after dragging items to the Dock icon?

2008-03-17 Thread Peter Maurer
Cocoa applications tend to come to the foreground automatically whenever I drag files to their Dock icon. Sometimes, however, I'd prefer my application to stay in the background and just start working on the file, while giving feedback through the Dock icon. But this isn't supposed to be a