Adding this method to your application delegate should be sufficient:
-(void)applicationDidChangeScreenParameters: (NSNotification *)notice
{
//Handle Display Change Here
}
If this isn't in the main class of your app, then you can make the class an
NSApp delgate by adding this line to the
the
one that comes through as data1 in the NSEvent. It appears to be a 32-bit
to 64-bit conversion issue, and my code works fine when compiled in 32-bit
mode.
Has anyone made global hotkeys work in 64-bit mode?
Thanks
Tobias Zimmerman
___
Cocoa-dev
¹ of the comparator?)
Any and all advice on this would be appreciated. Relevant code is below.
Thanks in advance
Tobias Zimmerman
/* Method to register hotkeys /*
- (void)assignHotKey: (UInt32)keyEquiv
modifiers: (UInt32)mods
hotKeyNumber: (NSInteger)menuIndex //the menu item
that has a different dot-pitch, pixel ratio, etc.
From: Graham Cox graham@bigpond.com
Date: Thu, 23 Apr 2009 10:27:25 +1000
To: Tobias Zimmerman automa...@gmail.com
Cc: cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com
Subject: Re: Removing or ignoring lineWidth property
Sorry if I am missing the point, but is [CG|NS]AffineTransform what you are
looking for? I have only used them in at the Cocoa view level
(NSBezierPath, NSAffineTransform), so my information may not be correct for
CGPath.
The Transforms section of the Quartz 2D guide may be helpful:
I am trying to find a way to ensure that a series of NSBezierPaths are drawn
using [NSBezierPath defaultLineWidth] value. However, contrary to
documentation and expectation, my paths seem to automatically assign
themselves the value 1.0 for their own lineWidth property.
First, the documentation
I am starting a new project that involves simulating various US election
results. I want to plot the results using an election map similar to the
ones that were all over the web during last year¹s election. However, I
would like to do this in Cocoa/Objective-C rather than having to learn
Python
Date: Tue, 24 Mar 2009 07:47:47 +
From: Benjamin Dobson importedfromsp...@googlemail.com
Subject: Re: Simulating (or obtaining) menubar effect in a Cell
In what way does NSPopUpButtonCell act incorrectly? It seems to work
for me, but obviously, I don't know exactly what your target is.
Hello all-
I am working with an NSMatrix, and I would like one cell of the Matrix to
act just like an item in the menu bar. Specifically: Single clicking should
open a menu; holding the mouse down should open the menu and then close it
when released; when selected the item should
From: Eric Gorr mail...@ericgorr.net
Subject: NSObliquenessAttributeName, labelFontOfSize, Italic
The solution proposed in the thread was to just add
NSObliquenessAttributeName, which is easy enough, but I am not sure
what the appropriate angle should be.
Is there a standard angle which
Information and an example of the function Eric references can be found on
the following website, which I found very helpful when implementing global
hotkeys in my statusItem:
http://dbachrach.com/blog/2005/11/28/program-global-hotkeys-in-cocoa-easily/
Tobias Zimmerman
Hi Vijay,
Take
Can someone confirm that the System Preferences application cannot load a
preference pane that is compiled with garbage collection? Even linking to a
framework compiled with GC ³supported² causes System Prefs to reject my
preference pane (Give an error saying it cannot be loaded). Turn off GC
Zitzmann n...@chronosnet.com
Cc: Tobias Zimmerman automa...@gmail.com, cocoa-dev@lists.apple.com
cocoa-dev@lists.apple.com
Subject: Re: NSPrefrencePane with Garbage Collection won't work in System
Preferences?
On Feb 27, 2009, at 11:00 AM, Nick Zitzmann wrote:
The PreferencePanes framework
)?
Again, the only parts of my code that touch the system prefs is the Pane and
the framework, neither of which are compiled with GC-required.
From: Bill Bumgarner b...@mac.com
Date: Fri, 27 Feb 2009 12:18:34 -0800
To: Tobias Zimmerman automa...@gmail.com
Cc: Nick Zitzmann n...@chronosnet.com, cocoa
Apologies if this is the wrong forum I am not entirely sure what category
this question properly falls under. If someone suggests a better list, I
will move the question there.
I want to obtain the name of a display (monitor) by manufacturer and brand.
Most (not all) displays report this using
Mail cocoa-dev@lists.apple.com
Message-ID: c5aaeb5d.79854%b...@cheeseman.name
Content-Type: text/plain; charset=ISO-8859-1
on 2009-01-31 4:44 PM, Tobias Zimmerman at automa...@gmail.com wrote:
So, I have read up on the AXMakeProcessTrusted function, and seen the
example at http
I have a somewhat complex problem I am hoping the list can help me with.
Ultimately, what I am trying to do is grant my application rights to use the
Accessibility API without forcing users to turn on ³Enable access for
assistive devices². My application uses AppleScripts (primarily calling
On Thu, Jan 15, 2009 at 1:59 AM, Bill Bumgarner b...@mac.com wrote:
For example, an application's VSIZE might be growing over time
because it is
mmap()'ing a bunch of files (or a few small files). If the app
fails to
unmap, the VSIZE will grow and the app may likely exhaust its
I believe, if I understood Bill Bumgarner's message correctly, is that
the 8GB range being assigned to the app is due in part to the design
of the garbage collector, libauto. I doubt that Apache is compiled to
use the garbage collector at all and thus, is not having that memory
range
I have searched for an answer to this question, including in Amit Singh's
book, but have not found the answer (at least, not in a form that I
recognize it).
I have a fairly simple Cocoa app that creates an NSStatusItem with a small
menu. It is compiled using Garbage Collection and in 64bit mode
Thank you very much for your help.
One reason I had avoided using NSScreen is that I am working with CGDisplay
functions and AppleScript, and so want to keep all of the coordinates in an
upper-left-origin orientation, but I may try the NSScreen method and see if
I can use one of the flipping
21 matches
Mail list logo