Fwd: Tool for creating application icon

2012-06-07 Thread Patrick Robertson
I’m definitely not an icon designer myself, but it’s my understanding that people generally just use Photoshop, or, if your budget is tight, one of its less-expensive equivalents such as Pixelmator. All you need is a set of images in an alpha-containing format like .png, scaled to different

ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
Hi all, I'm (finally) looking at converting my non-ARC (Mac OS X) app over to ARC, but also have quite a few external plugins/bundles which can be loaded into the main app on runtime. My question is - can my ARC app load non-ARC bundles, or is this not possible. My guess is that it's the similar

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
to keep in mind when testing the ARC app for the first time. Cheers, On 18 May 2012 17:37, David Duncan david.dun...@apple.com wrote: On May 18, 2012, at 7:39 AM, Patrick Robertson wrote: I'm (finally) looking at converting my non-ARC (Mac OS X) app over to ARC, but also have quite a few

Re: Fast Enumeration and temporary objects/autoreleasing

2012-04-17 Thread Patrick Robertson
While you have had the question answered, the fact you asked it shows a misunderstanding about memory management. Next time in my reply I will be clear to state that a) I have realised my mistake b) I have learnt from it to to save you some time writing your response ;-) I do appreciate your

Fast Enumeration and temporary objects/autoreleasing

2012-04-16 Thread Patrick Robertson
Hi all, I've searched the web, but can't seem to find any concrete information on how fast enumeration loops manage temporarily created objects. Would anybody be able to shine some light on whether fast enumeration itself takes care of the objects it creates? So, for example in: for (id

When to declare variables and the compiler's intelligence

2012-04-16 Thread Patrick Robertson
Another one on the underlying nature of the compiler and Objective-C for you here! I'm interested in how clever the compiler is at deciding where to create variables etc. in the code, and whether it's more efficient (OK, it'll be negligible) to declare variables only when they're needed for

Re: Fast Enumeration and temporary objects/autoreleasing

2012-04-16 Thread Patrick Robertson
a reference to one of the objects in the thing you are enumerating. [ array objectAtIndex:i ] doesn't create temporaries either. On Apr 16, 2012, at 5:42 PM, Patrick Robertson wrote: Hi all, I've searched the web, but can't seem to find any concrete information on how fast enumeration

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-17 Thread Patrick Robertson
PM, Patrick Robertson wrote: Did you ever get anywhere with this? Have you managed to confirm the bug? I still believe it's an OS X Lion bug, so it'd be good to be sure. I'm scheduled to start my annual review and upgrade of UI Browser in January. It's on my list to explore

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-17 Thread Patrick Robertson
applications. Thanks for your reply Nick, it's nice to know that I'm not the only one. On 17 February 2012 18:27, Nick Zitzmann n...@chronosnet.com wrote: On Feb 16, 2012, at 1:22 AM, Patrick Robertson wrote: As a follow up, it appears that in 10.7.3 Apple have included a further Console log message

AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2011-11-17 Thread Patrick Robertson
Hi all, I've upgraded to Lion, and my app which sends simulated keyboard presses to various apps to activate a service cannot send these keyboard presses to Safari or TextEdit. The keyboard presses are still sent correctly to Xcode, Finder and Mail. I have also confirmed that they still work fine

Toggle an object (image) when Command key is pressed: flagsChanged?

2011-07-26 Thread Patrick Robertson
Hi all, I'm wanting to toggle an object between its default and 'alternate' state (the object is made up of an image and some text) when the user hits the command (⌘) key. An obvious example is in Xcode 3.2 where if you press ⌥ the 'Build and Run' icon and text changes to 'Build and Debug' (or

Re: finder eject images

2011-07-05 Thread Patrick Robertson
Yes, but we're supposed to use them in-place, not copy them into our apps. I wasn't suggesting that be done. Here's the code I use in my apps: - (NSImage *)sysIconNamed:(NSString *)name { NSString *path = [[NSBundle bundleWithPath: @/System/Library/CoreServices/CoreTypes.bundle]

Re: finder eject images

2011-07-05 Thread Patrick Robertson
, at 5:20 AM, Patrick Robertson robertson.patr...@gmail.com wrote: I wasn't suggesting that be done. Here's the code I use in my apps: - (NSImage *)sysIconNamed:(NSString *)name { NSString *path = [[NSBundle bundleWithPath: @/System/Library/CoreServices/CoreTypes.bundle

Re: finder eject images

2011-07-04 Thread Patrick Robertson
Lots of system icons are stored in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ EjectMediaIcon.icns is in there :) On 4 July 2011 20:21, Lee Ann Rucker lruc...@vmware.com wrote: Unicode eject symbol 23CF, possibly in Apple Symbols font: ⏏ - Original Message -

Adding HTML data to the general pasteboard

2011-05-27 Thread Patrick Robertson
Dear all, I currently have an application which pastes objects from a given list of saved objects (basically strings) to wherever the mouse if focused. What I'm looking to do is paste these objects in RT format into various text editors. Most notably - URL strings (e.g. http://example.com) such

Re: Adding HTML data to the general pasteboard

2011-05-27 Thread Patrick Robertson
and HTML? On 27 May 2011 16:43, Patrick Robertson robertson.patr...@gmail.com wrote: Dear all, I currently have an application which pastes objects from a given list of saved objects (basically strings) to wherever the mouse if focused. What I'm looking to do is paste these objects in RT format