Re: text highlighting with CALayer and NSTextVew

2012-08-24 Thread Koen van der Drift
On Aug 23, 2012, at 10:55 PM, Kyle Sluder k...@ksluder.com wrote: Sadly, -convertRect:toLayer: and -convertRect:toBacking: are both broken on 10.7.4 and 10.7.5 for views that return YES from -isFlipped. (Yes, I filed a Radar and even a DTS incident, and it was returned.) Interesting,

Re: Sandboxing die.die.die

2012-08-24 Thread Mike Abdullah
On 24 Aug 2012, at 00:33, Graham Cox wrote: On 24/08/2012, at 3:11 AM, Greg Parker gpar...@apple.com wrote: On Aug 22, 2012, at 7:14 PM, Graham Cox graham@bigpond.com wrote: Turns out the problem I was having with this is because of the behaviour of [NSURL

Re: text highlighting with CALayer and NSTextVew

2012-08-24 Thread Kyle Sluder
On Aug 24, 2012, at 3:16 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Aug 23, 2012, at 10:55 PM, Kyle Sluder k...@ksluder.com wrote: Sadly, -convertRect:toLayer: and -convertRect:toBacking: are both broken on 10.7.4 and 10.7.5 for views that return YES from -isFlipped.

On handling those lovely unrecognized selector sent to instance SIGABRTs

2012-08-24 Thread Alex Zavatone
This is very eye opening and likely to be hugely time saving, especially with those storyboard crashes where you're not in code. http://www.fruitstandsoftware.com/blog/2012/08/quick-and-easy-debugging-of-unrecognized-selector-sent-to-instance/ The graphic in the link might not match up with

Finder Info

2012-08-24 Thread koko
I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older program needs to use the file and it OS8 Open filters on TYPE. I have looked at a number of FSSpec and FSRef but have had no success. If anyone has done this successfully I would sure like to hear about it. -koko

Re: Finder Info

2012-08-24 Thread Kyle Sluder
On Fri, Aug 24, 2012, at 11:05 AM, koko wrote: I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older program needs to use the file and it OS8 Open filters on TYPE. I have looked at a number of FSSpec and FSRef but have had no success. If anyone has done this

Re: On handling those lovely unrecognized selector sent to instance SIGABRTs

2012-08-24 Thread Jens Alfke
On Aug 24, 2012, at 9:28 AM, Alex Zavatone z...@mac.com wrote: This is very eye opening and likely to be hugely time saving, especially with those storyboard crashes where you're not in code.

Is it feasible to nest NSTableViews inside a view-based NStableView ?

2012-08-24 Thread Erik Stainsby
I have a situation where my data contains arrays of values: a list of phone numbers belonging to a person object. I'd like to be able to display the numbers in a single cell contained in a nested table of editable fields. Am I insane? I've been circling trough the hierarchies trying to

Setting NSTableColumnIdentifier in Xcode 4.4.1?

2012-08-24 Thread Laurent Daudelin
Am I missing something? Where do you set the column identifier in Xcode 4.4? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com

Re: Finder Info

2012-08-24 Thread koko
On Aug 24, 2012, at 2:02 PM, Kyle Sluder wrote: You want -[NSFileManager setAttributes:ofItemAtPath:error:] in combination with NSFileHFSTypeCode. I forgot to add that the deployment target is 10.4 … which is why I asked … -koko ___ Cocoa-dev

Re: Finder Info

2012-08-24 Thread gweston
koko asked:  I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older program needs to use the file and it OS8 Open filters on TYPE. I have looked at a number of FSSpec and FSRef but have had no success. If anyone has done this successfully I would sure like to hear about

Re: Finder Info

2012-08-24 Thread Kyle Sluder
On Fri, Aug 24, 2012, at 02:35 PM, koko wrote: On Aug 24, 2012, at 2:02 PM, Kyle Sluder wrote: You want -[NSFileManager setAttributes:ofItemAtPath:error:] in combination with NSFileHFSTypeCode. I forgot to add that the deployment target is 10.4 … which is why I asked … Use

Re: Setting NSTableColumnIdentifier in Xcode 4.4.1?

2012-08-24 Thread Kyle Sluder
On Fri, Aug 24, 2012, at 02:27 PM, Laurent Daudelin wrote: Am I missing something? Where do you set the column identifier in Xcode 4.4? Select the column. It's on the Identity inspector. (Same place you set an NSView's identifier.) --Kyle Sluder ___

Re: Finder Info

2012-08-24 Thread koko
On Aug 24, 2012, at 4:03 PM, Kyle Sluder wrote: FSSetCatalogInfo JUst did a cursory inspection of FSSetCatalogInfo … looks like the ticket. Thanks Kyle, I'll post my results for others and verification. -koko ___ Cocoa-dev mailing list

Have to specify (id)sender to action methods in OS X but not in iOS?

2012-08-24 Thread Laurent Daudelin
Anybody can explain why I need to add the (id)sender to any action (IBAction) methods I declare in a Mac OS X project as opposed to being able to get away with it in the same file in an iOS project??? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin

Re: Finder Info

2012-08-24 Thread Greg Guerin
koko wrote: I forgot to add that the deployment target is 10.4 … which is why I asked … Look at NSFileManager's deprecated methods, and find changeFileAttributes:atPath: . -- GG ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Have to specify (id)sender to action methods in OS X but not in iOS?

2012-08-24 Thread Fritz Anderson
Assuming the it you are getting away with is not needing to accept a parameter… On 24 Aug 2012, at 5:46 PM, Laurent Daudelin laur...@nemesys-soft.com wrote: Anybody can explain why I need to add the (id)sender to any action (IBAction) methods I declare in a Mac OS X project as opposed to

Trying to understand/prevent crash using restorableStateKeyPaths in NSPersistentUI Work

2012-08-24 Thread Eric Wing
I am struggling with a crash when implementing restorableStateKeyPaths in my NSWindowController for my main window in my app. I discovered that I needed to save out the window frame before I entered fullscreen so when the user exits fullscreen, I can go back to the original value. For this, I

NSView -backingAlignedRect:

2012-08-24 Thread Dave Keck
Regarding the NSRect returned from -backingAlignedRect:options:, the NSView documentation states: The rectangle is in window coordinates. Is this a documentation error? I would expect the returned rect to be in local view coordinates. ___

Re: text highlighting with CALayer and NSTextVew

2012-08-24 Thread Koen van der Drift
On Aug 24, 2012, at 12:23 PM, Kyle Sluder k...@ksluder.com wrote: Sorry, I did in fact mean -[NSView convertRectToLayer:] and -convertRectToBacking:. As well as the point-based conversion methods. That's too bad, I guess I'll need to look for an alternative. BTW, is there a way to move a

Re: Finder Info

2012-08-24 Thread koko
Excellent … much easier than make a FSRef if(m_FSRef) free((void*)m_FSRef); m_FSRef = malloc(sizeof(FSRef)); memset(m_FSRef,0x00,sizeof(FSRef)); const UInt8 *cpath = (const UInt8 *)[path cStringUsingEncoding:NSUTF8StringEncoding]; OSStatus osStatus =

Re: Finder Info

2012-08-24 Thread Jens Alfke
On Aug 24, 2012, at 8:59 PM, koko k...@highrolls.net wrote: Excellent … much easier than Well, in Carbon's defense, you're making things a lot harder than they have to be: if(m_FSRef) free((void*)m_FSRef); m_FSRef = malloc(sizeof(FSRef)); FSRefs don't have to be allocated

Re: Finder Info

2012-08-24 Thread koko
A nice tutorial … thanks! -koko On Aug 24, 2012, at 9:59 PM, koko wrote: Excellent … much easier than make a FSRef if(m_FSRef) free((void*)m_FSRef); m_FSRef = malloc(sizeof(FSRef)); memset(m_FSRef,0x00,sizeof(FSRef)); const UInt8 *cpath = (const UInt8