On 2011 Oct 09, at 22:26, John Joyce wrote:
> For this reason, any menu item with a name can be assigned a keyboard
> shortcut in OS X System Preferences by the user.
Thank you, John, but it doesn't work for Status Items; not for me.
True, in System Preferences ▸ Keyboard ▸ Keyboard Shortcuts,
On Oct 9, 2011, at 10:41 PM, Jerry Krinock wrote:
>> The status icon/view in the menu bar is in a window. You can thus get that
>> window's coordinates by [[[statusItem view] window] frame].
>
> Thank you, Seth. I wish it were so.
>
> But [statusItem view] returns nil for me. And the document
You could use [NSMenuItem setView:] with a temporary view which would
presumably be hooked up to the underlying window internally, grab its window,
then set it back to nil???
A hack, but not as bad as the original one :)
--Graham
On 10/10/2011, at 4:41 PM, Jerry Krinock wrote:
>
> On 2011 O
Back in Xocde 3 you could drag an entity into IB. With Xcode 4 you can no
longer do this. I have found a way to do the exact same thing in IB but miss
the ease of use of dragging an entity into IB.
Does anyone know if the IB team will be bringing this back in future releases
of xcode?
PS
On 2011 Oct 09, at 19:57, Seth Willits wrote:
> The status icon/view in the menu bar is in a window. You can thus get that
> window's coordinates by [[[statusItem view] window] frame].
Thank you, Seth. I wish it were so.
But [statusItem view] returns nil for me. And the documentation explain
On Oct 9, 2011, at 10:09 PM, Jerry Krinock wrote:
>
> On 2011 Oct 09, at 19:47, Graham Cox wrote:
>
>> This all sounds like a generally terrible idea.
>
> I think that my purpose of making my Status Item accessible from the keyboard
> is quite noble, but I agree that the way I'm going about i
I am trying to figure out why my string gets squashed sometimes in the first
two characters.
Here's what I get: Here's what I get:
http://a3.l3-images.myspacecdn.com/images02/127/4715903defac43d196c873a29fd6527d/l.jpg
Here's what I wish I could get: Here's what I wish I could get:
http://a1.l3
On Oct 9, 2011, at 17:18 , livinginlosange...@mac.com wrote:
> I have an NSComboBox bound to the selection of an NSArrayController. The
> bound object is an NSDictionary. I use an NSValueTransfomer to represent the
> NSDictionary. The ValueTransformer gives me the dictionary's summary property
On 2011 Oct 09, at 19:47, Graham Cox wrote:
> This all sounds like a generally terrible idea.
I think that my purpose of making my Status Item accessible from the keyboard
is quite noble, but I agree that the way I'm going about it is a terrible kludge
> Have you checked to see whether the Acc
Yeahh... What you did there was pretty nasty. :p
The status icon/view in the menu bar is in a window. You can thus get that
window's coordinates by [[[statusItem view] window] frame]. This relies on how
it's currently implemented, however I don't see it changing any time soon.
--
Seth Wi
This all sounds like a generally terrible idea.
Have you checked to see whether the Accessibility APIs can give you what you
want?
If it's for some other purpose than accessibility, sounds like you're walking
the slippery slope to hell…. ;)
--Graham
On 10/10/2011, at 1:26 PM, Jerry Krinoc
I changed the subject line because if I could just get the screen coordinates
of my Status Item, my kludge for giving it keyboard focus looks like it will
work.
NSMenu inherits from NSObject, and as far as I can see give no clue regarding
its location on the screen. NSStatusItem and NSStatusBa
I have an NSComboBox bound to the selection of an NSArrayController. The bound
object is an NSDictionary. I use an NSValueTransfomer to represent the
NSDictionary. The ValueTransformer gives me the dictionary's summary property
which is useful for people choosing the appropriate NSDictionary fr
OK, the CGEventCreateMouseEvent() I described in my previous message seems to
work, except for one detail. How to I find the location of, in particular, a
Status Menu item, in CG "global" coordinates? It looks like that's the hardest
part!
Jerry
On 2011 Oct 09, at 14:16, Jerry Krinock wrote:
Update: I'm "borrowing" the mouse using CGEventCreateMouseEvent(). It seems
like it might work, but sure seems like a kludge, and many lines of code to do
something very simple.
Any better ideas would be appreciated.
On 2011 Oct 09, at 12:31, Jerry Krinock wrote:
> Is there any code which can
On Sun, Oct 9, 2011 at 1:51 PM, Jerry Krinock wrote:
>
> On 2011 Oct 08, at 21:12, Stephen J. Butler wrote:
>
>> What's wrong with +[NSDate distantFuture]?
>
> Nothing. It's only [NSDate -dateWithTimeIntervalSinceNow:FLT_MAX] which
> sometimes gives unexpected results.
It's not, at least not on
Is there any code which can *click* a menu, to give it keyboard focus, so that
the user may then select an item in the menu using arrow keys?
Thanks a bunch!
Jerry
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reque
On 2011 Oct 08, at 21:12, Stephen J. Butler wrote:
> What's wrong with +[NSDate distantFuture]?
Nothing. It's only [NSDate -dateWithTimeIntervalSinceNow:FLT_MAX] which
sometimes gives unexpected results.
___
Cocoa-dev mailing list (Cocoa-dev@lists.
On Oct 9, 2011, at 05:44 , silve...@wfmh.org.pl wrote:
> But what I tried to achieve was to do it somewhat more "OO", although sharing
> the payload between various instances seems to be contradicting it ;-)
Not at all. Sharing the payload is neither a problem nor wrong, but trying to
take a s
On 9 Oct 2011, at 11:41 AM, Peter Hudson wrote:
> I have found a solution in overriding the dataSource method in my table view
> subclass and simply returning [self dataSource] cast to the class which I
> know the datasource to be.
Why override the method, when all you can just cast the re
On Oct 9, 2011, at 9:41 AM, Peter Hudson wrote:
> For a long time ( in xcode 3 ) when I want to access a table view data
> source ( in the sub class code for the table view ) I simply called [self
> dataSource]
> I would then call methods declared and implemented on the class which I new
> t
Hi There
For a long time ( in xcode 3 ) when I want to access a table view data source
( in the sub class code for the table view ) I simply called [self dataSource]
I would then call methods declared and implemented on the class which I new to
be the datasource. This worked fine.
In xcode
Was exactly what I needed! Thanks,
Michael
On Sat, Oct 8, 2011 at 11:20 PM, Quincey Morris <
quinceymor...@rivergatesoftware.com> wrote:
> On Oct 8, 2011, at 20:10 , Michael Hanna wrote:
>
> On Mac OS X 10.6.8, in an NSTableView I have a column that contains
> nsbuttoncell class. Row selection i
On 2011-10-09, at 05:05, Quincey Morris wrote:
>> What am I doing wrong? Shouldn't the instance created using
>> dataWithBytesNoCopy:length:freeWhenDone simply hold the same bytes as
>> the originally provided ones?
>
> Presumably you're using 'dataWithBytesNoCopy:length:freeWhenDone:NO', sin
On 2011-10-09, at 05:50, Ken Thomases wrote:
>> I'd guess that, with the 'NO' parameter, NSMutableData copies the data
>> anyway.
>
> This is actually documented. In the Binary Data Programming Guide, in the
> article Working With Binary Data[1], it says:
>
>> However, if you create an NSDat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/7/11 10:25 PM, GW Rodriguez wrote:
> I have gone through many different threads on this, read the docs
> and went over a few example projects. For some reason I cannot
> get reordering via drag and drop to work. I have even created a
> new proj
26 matches
Mail list logo