Re: Give a menu keyboard focus – in code

2011-10-10 Thread Martin Hewitson
I haven't been following this thread closely, so I may be talking about the wrong thing here, but I just noticed I can cycle through the status items, and some of them (e.g. istat menus and apple items) are selectable with ctrl-f8 then arrow keys, and some not (e.g. dropbox). So it seems like it

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Andy Lee
On Oct 10, 2011, at 2:02 AM, Jerry Krinock wrote: > 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. [.

Sandboxing + NSSavePanel's accessoryView

2011-10-10 Thread Rimas M.
Hello, I am trying to enable sandboxing in my app, and I am dealing with a very strange behavior. I am not sure if this is a bug of Lion/Sandboxing or I have missed something in documentation. In save panel I am using a custom accessoryView which is set in "- (BOOL)prepareSavePanel:(NSSavePanel *

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Jerry Krinock
On 2011 Oct 10, at 02:03, Martin Hewitson wrote: > I haven't been following this thread closely, so I may be talking about the > wrong thing here, but I just noticed I can cycle through the status items, > and some of them (e.g. istat menus and apple items) are selectable with > ctrl-f8 then a

Scripting Bridge Finder

2011-10-10 Thread Leonardo
Hi, with Scripting Bridge Finder, I am trying to change the folder window size and the icon position of the files therein. I got 2 troubles. 1) If the folder window is closed, I can't resize it. 2) After I change the position of the icon, I have to close the folder then reopen it, in order to see

NSTreeController with bindings and core data - still an issue?

2011-10-10 Thread Koen van der Drift
Hi, I'm looking to implement a simple iTunes/Mail like source list in an app, and have been rummaging through the internets for some decent tutorials and sample code. I found some, but they are all a bit outdated. Basically, I want to combine my Core Data model with an NSOutlineView and NSTreeCont

Re: Xcode 3 to 4 - CoreData in IB

2011-10-10 Thread Fritz Anderson
On 10 Oct 2011, at 12:47 AM, GW Rodriguez wrote: > 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 wi

Re: NSTreeController with bindings and core data - still an issue?

2011-10-10 Thread Richard Somers
On Oct 10, 2011, at 9:05 AM, Koen van der Drift wrote: > I'm looking to implement a simple iTunes/Mail like source list in an app, and > have been rummaging through the internets for some decent tutorials and > sample code. I found some, but they are all a bit outdated. Basically, I want > to c

Re: NSFont squashes my first two characters

2011-10-10 Thread Jens Alfke
On Oct 9, 2011, at 3:19 AM, Oron Cherry wrote: > "Geneva" font gives the problem shown in the above image. Other fonts such as > "Helvetica" are fine. That’s sort of odd (that string in Geneva 10 displays correctly in TextEdit.) Are you drawing directly to a view or into an image? My advice w

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Charles Srstka
On Oct 10, 2011, at 7:34 AM, Jerry Krinock wrote: > > On 2011 Oct 10, at 02:03, Martin Hewitson wrote: > >> I haven't been following this thread closely, so I may be talking about the >> wrong thing here, but I just noticed I can cycle through the status items, >> and some of them (e.g. istat

Keeping grayscale image grayscale

2011-10-10 Thread Jonathan Taylor
I'm working with 16-bit grayscale images, and for the most part I'm just manipulating bits within NSBitmapImageRep objects. However for convenience it would be nice to do some stuff with NSImages, particularly when rescaling and suchlike. The problem is that whenever I draw into such an NSImage

Re: Sandboxing + NSSavePanel's accessoryView

2011-10-10 Thread Corbin Dunn
Hi Rimas, It sounds like a bug in sandboxing in AppKit. Can you log a bug on this? And (if possible, but not required) include a sample application that reproduces it. A work around is to just always set the accessoryView. thanks, corbin On Oct 10, 2011, at 3:17 AM, Rimas M. wrote: > Hello,

Re: NSTreeController with bindings and core data - still an issue?

2011-10-10 Thread Koen van der Drift
On Mon, Oct 10, 2011 at 12:40 PM, Richard Somers wrote: > When Wil Shipley wrote his blog article in April 2006 the API was at the 10.4 > Tiger level. Since then NSTreeController has had one method revised and six > > new methods have been added in the 10.5 Leopard API. The 10.5 release notes

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Jerry Krinock
On 2011 Oct 10, at 02:57, Andy Lee wrote: > Accessorizer's "Action Menu" is a status item that provides the exact UI > Jerry is talking about Thank you, Andy. After thinking about what Kevin Callahan has done with Accessorizer, and the suggestion by Graham and Seth, I have an answer that's ev

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Andy Lee
Sounds great, Jerry. Thanks for sharing the details of your approach. --Andy On Oct 10, 2011, at 2:10 PM, Jerry Krinock wrote: > > On 2011 Oct 10, at 02:57, Andy Lee wrote: > >> Accessorizer's "Action Menu" is a status item that provides the exact UI >> Jerry is talking about > > Thank you,

Re: Give a menu keyboard focus – in code

2011-10-10 Thread Lee Ann Rucker
An issue I discovered recently: If your NSStatusItem uses a menu it gets AXPress for free but if it uses a custom view, the view needs to implement all the necessary accessibility pieces required for AXPress itself. Granted its accessibility is rather lacking if keyboard navigation doesn't work

Re: Keeping grayscale image grayscale

2011-10-10 Thread Scott Ribe
On Oct 10, 2011, at 11:43 AM, Jonathan Taylor wrote: > Does anyone have any suggestions? Personally, I use Apple's vImage library (in the Accelerate framework). Much lower level, but it gives you total control, while still using highly-optimized algorithms. -- Scott Ribe scott_r...@elevated-d

Quandary : NSAppleScript ties up main thread

2011-10-10 Thread Jerry Krinock
I currently run AppleScripts using -[NSAppleScript executeAndReturnError:]. Sometimes, but not often, one of them takes 5-10 seconds to execute, and when this happens I'd like to display a small window showing indeterminate progress. However, any invocation to NSAppleScript must occur on the ma

drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
Hi Everyone, I can't seem to get an NSCollectionView to render an of the NSCollectionViewItems' NSViews. I have an NSCollectionView that is bound to an NSArrayController's arrangedObjects. The NSCollectionViewItem is set up as a template, and also has its Outlet attached to an NSView. For fun

Re: Quandary : NSAppleScript ties up main thread

2011-10-10 Thread Jens Alfke
On Oct 10, 2011, at 4:41 PM, Jerry Krinock wrote: > NSAppleScript does not seem to have any asychronous/callback methods for > executing scripts. The only solution I can think of is to not use it. > Instead, maybe launch the script as an application, and return the result by > writing it to

How to get info about an iOS device (UDID, etc)?

2011-10-10 Thread Jens Alfke
I’m writing an internal app our QA engineers going to use to capture performance metrics on various iOS devices. After running tests, the app will upload the results to a server. In those results I need to include enough info to identify the device, so I want to get things like the UDID, the mod

Re: How to get info about an iOS device (UDID, etc)?

2011-10-10 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/10/11 5:44 PM, Jens Alfke wrote: > I’m writing an internal app our QA engineers going to use to > capture performance metrics on various iOS devices. After running > tests, the app will upload the results to a server. In those > results I need to

Re: How to get info about an iOS device (UDID, etc)?

2011-10-10 Thread Don Quixote de la Mancha
Ad Hoc Helper does it and is available from the App Store. But it doesn't seem to be Open Source. It was written by Erica Sadun who also wrote The iPhone Developer Cookbook. Maybe she can tell you. On Monday, October 10, 2011, Jens Alfke wrote: > I’m writing an internal app our QA engineers go

Re: Quandary : NSAppleScript ties up main thread

2011-10-10 Thread Shane Stanley
On 11/10/2011, at 10:41 AM, Jerry Krinock wrote: > However, any invocation to NSAppleScript must occur on the main thread From the 10.6 release notes: > Thread Safety > OSA and AppleScript are now thread-safe: they may be safely called on a > non-main thread or from multiple threads without an

Re: drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
Well, After some troubleshooting, it looks like the NSView that is attached to the NSCollectionViewItem object is missing its superview. Does any know how this might be possible?? I can see my Subclassed NSView being created. AwakeFromNib works, as does hitTest. The drawRect does get called, bu