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.
http://www.cocoabuilder.com/archive/cocoa/284356-alternative-startup-for
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 de
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
numberOfC
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 flags
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 tru
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 pu
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 speak
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'
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.
--An
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 P
On Jun 25, 2011, at 07:54 PM, Andy Lee 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 mailing lis
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 -17
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 almo
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 and
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 se
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
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 Ju
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
On Jun 25, 2011, at 10:23 AM, Fritz Anderson wrote:
> 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
Oh! That's why!
Thanks,
Andre Masse
On 25/06/2011, at 10:23 , Fritz Anderson wrote:
> 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 t
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..
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 ma
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 d
23 matches
Mail list logo