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 sizes

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread Patrick Robertson
omething I have to keep in mind when testing the ARC app for the first time. Cheers, On 18 May 2012 17:37, David Duncan 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, > > b

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: 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 hel

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

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 example

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 anObject

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

2012-02-17 Thread Patrick Robertson
m our 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 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 >

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

2012-02-17 Thread Patrick Robertson
AXUIElementPostKeyboardEvent anymore. Do people consider this to be reasonable/make sense? Somehow, I don't see how it's justifiable for a Sandboxed app to display this behaviour, and causes serious usability problems. On 24 November 2011 10:25, Bill Cheeseman wrote: > > On Nov 23, 2011, at

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 vic

Re: finder eject images

2011-07-05 Thread Patrick Robertson
ter suggestions, feel free to let me know! For those hoping to use the CoreTypes.bundle ICNS, I have not seen any of them disappear or change name in over 8 years with OS updates. No changes is Lion either as far as I can tell. On 5 July 2011 15:20, Kyle Sluder wrote: > On Jul 5, 2011, at 5:20 AM, P

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"] pathForResou

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 wrote: > Unicode "eject symbol" 23CF, possibly in Apple Symbols font: ⏏ > > - Original Message - > From: "Tony Ro

Re: Adding HTML data to the general pasteboard

2011-05-27 Thread Patrick Robertson
g into RTF and HTML? On 27 May 2011 16:43, Patrick Robertson 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

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 th