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 ... http://lists.apple.com/archives/cocoa-dev/2007/Aug/msg00499.html ... by yours truly, which was later followed by Rogue Amoeba's aforementioned take on this. Look here for the

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

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;

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?

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: http://growl.info/documentation/developer/implementing-growl.php?lang=cocoa You'll want to use Growl-WithInstaller.framework. If

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

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

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

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,

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

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