How to override [NSTextField paste:]

2012-06-15 Thread Graham Cox
Is there a way to override the -paste: method of NSTextField, other than subclassing? I have a situation where I want to handle paste for several related text entry fields at once. I have implemented -paste: in the controller for these, but of course it goes to first responder which is the

Re: Demo Version

2012-06-15 Thread Thomas Davie
On 15 Jun 2012, at 01:06, Preston Sumner wrote: On Jun 14, 2012, at 11:41 AM, Richard Somers wrote: The Mac App Store guidelines indicates that Apps that are beta, demo, trial, or test versions will be rejected. So if potential customers need to go to my website to download a demo

Core Image

2012-06-15 Thread Luca Ciciriello
Hi All. I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation. My doubt is: Is this key available in iOS? I'm using iOS 5.1 with Xcode 4.3.3 Thanks in advance for any answer. Luca. ___

Re: Core Image

2012-06-15 Thread Roland King
It's in the documentation as iOS4.0 and later and it's in the header file too grep kCGImagePropertyOrientation * CGImageProperties.h:IMAGEIO_EXTERN const CFStringRef kCGImagePropertyOrientation IMAGEIO_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_4_0); Did you pick the right framework? It's

Re: Core Image

2012-06-15 Thread Luca Ciciriello
I build using CoreImage.framework and including CoreImage/CoreImage.h header The BASE SDK is 5.1 and the Deployment Target is 5.1 The error I get is Use of undeclared identifier KCGImagePropertyOrientation. Is there some other header I've to include? Luca. On Jun 15, 2012, at 2:41 PM, Roland

Re: Core Image

2012-06-15 Thread Roland King
What framework does the documentation for kCGImagePropertyOrientation tell you to add? In my last mail I said it's right at the top of the documentation page, as it usually is for all such things. On Jun 15, 2012, at 9:00 PM, Luca Ciciriello wrote: I build using CoreImage.framework and

Re: Core Image

2012-06-15 Thread Fritz Anderson
On Fri, June 15, 2012 7:24 am, Luca Ciciriello wrote: Hi All. I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation. I notice that you keep spelling it KCGImagePropertyOrientation. The proper spelling is kCGImagePropertyOrientation,

Re: Core Image

2012-06-15 Thread Luca Ciciriello
Yes this is the problem. Thanks Luca. On Jun 15, 2012, at 4:03 PM, Fritz Anderson wrote: On Fri, June 15, 2012 7:24 am, Luca Ciciriello wrote: Hi All. I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation. I notice that you keep

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
Should also have noted: I believe this problem started with 10.7.4. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
On Jun 15, 2012, at 7:19 AM, Scott Ribe wrote: On Jun 14, 2012, at 3:15 PM, Matthew Weinstein wrote: Ideas? Anyone else having pdfview lion problems. Yes, the problem you described, plus also fairly frequently crashes on closing the window--looks like invalidate being sent to a timer

updates for retina

2012-06-15 Thread Roland King
I was reading around about the new Macbook Pro retina display today and there were quite a lot of comments about how apps may need updating to support it. Chrome was mentioned as an app which doesn't look good currently, I saw the pictures, it's not nice. I understand apps needing 2x artwork

Re: updates for retina

2012-06-15 Thread Bill Cheeseman
On Jun 15, 2012, at 10:21 AM, Roland King wrote: I was reading around about the new Macbook Pro retina display today and there were quite a lot of comments about how apps may need updating to support it. Chrome was mentioned as an app which doesn't look good currently, I saw the pictures,

Re: updates for retina

2012-06-15 Thread lbland
hi- On Jun 15, 2012, at 10:21 AM, Roland King wrote: I understand apps needing 2x artwork piece, that makes sense. Why does that make sense? If your tool icon needs to be 32x32 pixels then make a TIFF/PNG 64x64 (or 128x128 or 256x256) and let NSImage do the rest. for icns, add all

Re: More PDFView mysteries...

2012-06-15 Thread Antonio Nunes
On 15 Jun 2012, at 16:20, Scott Ribe wrote: Ideas? Anyone else having pdfview lion problems. Yes, the problem you described, plus also fairly frequently crashes on closing the window--looks like invalidate being sent to a timer that no longer exists, when my window controller does not

Re: More PDFView mysteries...

2012-06-15 Thread Scott Ribe
On Jun 15, 2012, at 7:48 AM, Antonio Nunes wrote: Indeed, the only way I found to solve this is to build in 10.7.3, but according to my tests the issue only happens when you've attached a PDFThumbnailView to the PDFView. I believe otherwise the crash on close doesn't happen. I'm building

Re: updates for retina

2012-06-15 Thread Jean-Daniel Dupas
Le 15 juin 2012 à 16:21, Roland King a écrit : I was reading around about the new Macbook Pro retina display today and there were quite a lot of comments about how apps may need updating to support it. Chrome was mentioned as an app which doesn't look good currently, I saw the pictures,

Re: More PDFView mysteries...

2012-06-15 Thread Antonio Nunes
On 15 Jun 2012, at 16:58, Scott Ribe wrote: Indeed, the only way I found to solve this is to build in 10.7.3, but according to my tests the issue only happens when you've attached a PDFThumbnailView to the PDFView. I believe otherwise the crash on close doesn't happen. I'm building on

Re: Core Image

2012-06-15 Thread Richard Altenburg (Brainchild)
Op 15 jun. 2012, om 14:24 heeft Luca Ciciriello het volgende geschreven: I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation. My doubt is: Is this key available in iOS? I'm using iOS 5.1 with Xcode 4.3.3 My documentation serach

Re: Core Image

2012-06-15 Thread Richard Altenburg
Op 15 jun. 2012, om 14:24 heeft Luca Ciciriello het volgende geschreven: I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation. My doubt is: Is this key available in iOS? I'm using iOS 5.1 with Xcode 4.3.3 My documentation serach

Re: How to override [NSTextField paste:]

2012-06-15 Thread Kyle Sluder
On Jun 14, 2012, at 11:04 PM, Graham Cox wrote: Is there a way to override the -paste: method of NSTextField, other than subclassing? I have a situation where I want to handle paste for several related text entry fields at once. I have implemented -paste: in the controller for these,

NSTextField Selection

2012-06-15 Thread koko
I have an NSTextField whose width is just enough for M and W. The filled can get set with text longer than one character. The user is to replace this multi-character text with a single character. So, without having to double click to select all text before entering the single character

Re: NSTextField Selection

2012-06-15 Thread Kyle Sluder
On Jun 15, 2012, at 12:31 PM, koko k...@highrolls.net wrote: I have an NSTextField whose width is just enough for M and W. The filled can get set with text longer than one character. The user is to replace this multi-character text with a single character. I'm really confused by your

Re: updates for retina

2012-06-15 Thread Jens Alfke
On Jun 15, 2012, at 8:02 AM, Jean-Daniel Dupas wrote: Because Chrome is not a Normal app, and it does not just use standard API for rendering. To be precise: Chrome draws web page contents into offscreen pixmaps and then copies those to the screen. (This is for security: the drawing is done

Re: NSTextField Selection

2012-06-15 Thread Charlie Dickman
You are going around the world to cross the street. Define an NSFormatter for your text field and implement a textfield delegate and you can have the exact control over the textfield that you are after. On Jun 15, 2012, at 3:41 PM, Kyle Sluder wrote: On Jun 15, 2012, at 12:31 PM, koko

Re: NSTextField Selection

2012-06-15 Thread Kyle Sluder
On Jun 15, 2012, at 1:53 PM, Charlie Dickman wrote: You are going around the world to cross the street. Define an NSFormatter for your text field and implement a textfield delegate and you can have the exact control over the textfield that you are after. NSFormatter doesn't sound

Re: NSTextField Selection

2012-06-15 Thread koko
On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote: What do you want the trigger to be for selecting all the text? Whenever the user starts editing my text field, all the text should be selected so they can hit one key to replace it all? If that's what you want, I'd just hook up an object as

Re: NSTextField Selection

2012-06-15 Thread koko
On Jun 15, 2012, at 1:41 PM, Kyle Sluder wrote: What do you want the trigger to be for selecting all the text? Whenever the user starts editing my text field, all the text should be selected so they can hit one key to replace it all? If that's what you want, I'd just hook up an object as

[SOLVED] Re: How to override [NSTextField paste:]

2012-06-15 Thread Graham Cox
On 16/06/2012, at 4:06 AM, Kyle Sluder wrote: Your best bet is probably to retarget the Paste menu item to use a different selector that is picked up by your window controller. Thanks Kyle, Unfortunately the standard paste: selector is used extensively elsewhere in my app, so this simple