Re: tooltips not firing on first try

2011-06-25 Thread Rick C.
Sure thing Corbin thanks! On Jun 24, 2011, at 11:48 PM, Corbin Dunn wrote: Hi rick, It sounds like you are reporting a different issue than what Lee Ann was talking about, but the work arounds may also solve your issue too. If you can reproduce it, ideally package up a test app that

Re: How to redraw a view in slow-motion

2011-06-25 Thread Matthias Arndt
Hi guys, I'd just like to give you some final feedback, how I was able to solve my problem, drawing a view with some thousand paths in a slow-motion. You all have contributed to this approach, which is a mixture of your suggestions, and works pretty well so far. The basic idea: 1. make the

Strange pause selecting row in NSTableView

2011-06-25 Thread Andre Masse
Hi list, Doing this: Select a couple of rows in a table view then click on one. There's a half a second delay before the selection change to the clicked row. I was trying to find the reason for this delay in my application then tried it in Mail, same behavior... Can anyone check this on his

Re: Strange pause selecting row in NSTableView

2011-06-25 Thread Fritz Anderson
On 25 Jun 2011, at 9:14 AM, Andre Masse wrote: Select a couple of rows in a table view then click on one. There's a half a second delay before the selection change to the clicked row. I was trying to find the reason for this delay in my application then tried it in Mail, same behavior...

Event Objects Return 1-Based Y Coordinate Values

2011-06-25 Thread Richard Somers
The Cocoa Drawing Guide states Cocoa event objects return y coordinate values that are 1-based instead of 0-based. Thus, a mouse click on the bottom left corner of a window or view would yield the point (0, 1) in Cocoa and not (0, 0). Only y-coordinates are 1-based. Why are the y-coordianate

Re: Strange pause selecting row in NSTableView

2011-06-25 Thread Andre Masse
Are you clicking on one of the selected rows? Clicking on non selected rows doesn't show the delay... My double-click speed is almost at full speed. Thanks for testing this, Andre Masse On 25/06/2011, at 10:52 , Andy Lee wrote: On Jun 25, 2011, at 10:23 AM, Fritz Anderson wrote: On 25 Jun

Re: Strange pause selecting row in NSTableView

2011-06-25 Thread Andy Lee
Ah, I didn't read carefully enough. Indeed if I select multiple rows and click one of them, I see a delay that correlates with my double-click setting. But if your double-click setting is almost full speed (i.e., close to the Fast end in System Preferences) you should see barely any delay. Do

Re: Strange pause selecting row in NSTableView

2011-06-25 Thread Andre Masse
Double-click speed was at about 80% max. Setting it full speed indeed reduce the delay. It's barely noticeable now. Thanks for your help, Andre Masse On 25/06/2011, at 11:34 , Andy Lee wrote: Ah, I didn't read carefully enough. Indeed if I select multiple rows and click one of them, I see

Re: audiounit instrument with cocoa view

2011-06-25 Thread Stephen Blinkhorn
On 24 Jun 2011, at 14:58, ben kamen wrote: i'd just like to add the disclaimer that i have no idea what i'm doing so don't take my advice too seriously... :) i thought that my cocoaView was working but almost right after that ran into more issues as soon as i actually added views

Re: audiounit instrument with cocoa view

2011-06-25 Thread Stephen Blinkhorn
oops wrong list... again. On 25 Jun 2011, at 15:01, Stephen Blinkhorn wrote: On 24 Jun 2011, at 14:58, ben kamen wrote: i'd just like to add the disclaimer that i have no idea what i'm doing so don't take my advice too seriously... :) i thought that my cocoaView was working but

Cocoa scripting: targeting an app via its bundle identifier

2011-06-25 Thread Andy Lee
This has been bedeviling me all day. As an AppleScript novice I suspect -- I *hope* -- I'm missing something trivial. I have a scriptable app I want to write AppleScript that targets the app via its bundle identifier rather than its name. But when I do what seems the obvious thing, I get a

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-25 Thread Andy Lee
On Jun 25, 2011, at 07:54 PM, Andy Lee ag...@mac.com wrote: I have a scriptable app I want to write AppleScript that targets the app   That should be: I have a scriptable app. I want to write AppleScript that targets the app --Andy ___ Cocoa-dev

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-25 Thread Jeff Johnson
Hi Andy. It seems that the indirection confuses AppleScript, and it doesn't know which dictionary to use. Is there a reason you don't use the following more simple code? tell application id com.yourcompany.TrivialScriptable That works better in my testing. -Jeff On Jun 25, 2011, at 6:52

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-25 Thread Andy Lee
Indeed, that works! And I thought I'd tried that and gotten an error, but my syntax must have been wrong. Many thanks, Jeff. It's such a relief to be able to move on that I won't even bother to dope-slap myself. One of these days I'll read Matt Neuburg's book, but for now... I'll move on.

Re: Cocoa scripting: targeting an app via its bundle identifier

2011-06-25 Thread Jeff Johnson
Glad to hear. And I definitely recommend Neuburg's book. -Jeff On Jun 25, 2011, at 7:54 PM, Andy Lee wrote: Indeed, that works! And I thought I'd tried that and gotten an error, but my syntax must have been wrong. Many thanks, Jeff. It's such a relief to be able to move on that I won't

Cocoaheads - Silicon Valley is BACK!

2011-06-25 Thread Tedd Fox
This is the first meeting of the Re-Founded Cocoaheads - Silicon Valley. It may be a typical first meeting, but we have to start somewhere right? When: June 23rd, 2011 7-9PM Where: Bodega Bay Tech Talk Room 1950 Amphitheater Parkway Mountain View, California We still need people for

Re: NSSavePanel called from 64-bit NPAPI plugin

2011-06-25 Thread Kevin Peterson
On 6/19/2011 10:41 PM, Kevin Peterson wrote: I'm attempting a save as [NSSavePanel savePanel] modal dialog from an NPAPI plugin compiled for x86_64 and running under Safari 5.0.5 on OSX 10.6.7. Whenever the call to runModal completes Safari ends up in a wedged state in which none of menu

Menu item key equivalents missing

2011-06-25 Thread John Doe
Hello, I have an issue with application menus.  I'm losing menu key equivalents to system short cuts and I'm not sure why.  Reading the Services Implementation Guide, it states When an application already has a shortcut with that key equivalent, the application’s shortcut wins and this is true

Detect shift key down

2011-06-25 Thread Bernard Desgraupes
Hi, I need to detect if the shift key is pressed by the user during the startup of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? The following QA seems inspiring http://developer.apple.com/library/mac/#qa/qa1519/_index.html but I don't know where to install this

NSBrowser matrix

2011-06-25 Thread Ari Black
Hello all, I'm trying to set the matrix class for an NSBrowser I have in a window. I have the following in my .h file: @interface SpecialMatrix : NSMatrix { } //- (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows

Re: Detect shift key down

2011-06-25 Thread Ken Heglund
This is how I do it in the application delegate's applicationDidFinishLaunching: implementation... UInt32 modifiers = GetCurrentKeyModifiers(); if ( modifiers shiftKey ) { // handle shift key... } -Ken On Jun 24, 2011, at 12:19 AM, Bernard Desgraupes wrote: Hi, I need to

Re: Detect shift key down

2011-06-25 Thread Richard Somers
On Jun 24, 2011, at 1:19 AM, Bernard Desgraupes wrote: I need to detect if the shift key is pressed by the user during the startup of my app. How would I do that in Cocoa (targetting 10.5 and greater) ? Try this.