Re: ^Block statement considered harmful for callbacks?

2013-04-29 Thread vipgs99
What's your proxy for NSTimer? I'm interesting in it. On 13-4-25 16:34, Oleg Krupnov wrote: Tom, I disagree, because unlike other objects with strong refs, or say @property(retain), the strong refs in blocks are created implicitly and it's just too easy to let them slip out of attention. There

Laying out text in NSTextView around a subview

2013-04-29 Thread Jason Brennan
What I’m trying to do is have an NSTextView and add custom NSView subviews to it, but have it so the text can layout around the subviews. Right now, I can easily add a subview to the textview but of course, that goes into the textview and the text is ignorant of the subviews, so it just runs

Re: Find functions disabled while NSSearchField is first responder.

2013-04-29 Thread Antonio Nunes
On 27 Apr, 2013, at 08:04 , Antonio Nunes devli...@sintraworks.com wrote: On 25 Apr, 2013, at 18:21 , Antonio Nunes devli...@sintraworks.com wrote: I have an NSSearchField, and a menu bar submenu with the standard Find items. When the search field receives some input, it performs its action

LSGetApplicationForURL() failed Error -10814

2013-04-29 Thread Dhiraj Bhor
Hi, I am developing an application tool that requires a function which will give me users default browser name. I have code as below FSRef appRef; CFURLRef inUrl; OSStatus status; CFStringRef urlString; CFURLRef appUrlRef; CFStringRef defBrowserName;

Rotated CALayer and issues with coordinates (should I convert them manually?)

2013-04-29 Thread Daniele Margutti
Hi guys, I've an NSView hierarchy with: - an NSWindow with inside an NSView (called BaseContainerView) (yellow color) - inside BaseContainerView another NSView called HostView (centered) (orange color) - inside HostView.layer a CALayer called

Re: LSGetApplicationForURL() failed Error -10814

2013-04-29 Thread Nick Zitzmann
On Apr 27, 2013, at 2:39 AM, Dhiraj Bhor dhirajbho...@gmail.com wrote: This code works well when i am normal user. But when i ran same code as super user, it give me error that *LSGetApplicationForURL() failed. Error:(-10814)* Why this happened? The documentation for

Re: Rotated CALayer and issues with coordinates (should I convert them manually?)

2013-04-29 Thread David Duncan
On Apr 27, 2013, at 2:48 AM, Daniele Margutti m...@danielemargutti.com wrote: If I try to rotate my hostView.layer (CALayer) using the function below I get wrong coordinates when I try to click at the same (rotated) point (the top,left coordinate of hostView) Point conversion happens via

Re: Rotated CALayer and issues with coordinates (should I convert them manually?)

2013-04-29 Thread Daniele Margutti
On Apr 29, 2013, at 9:33 AM, David Duncan david.dun...@apple.com wrote: On Apr 27, 2013, at 2:48 AM, Daniele Margutti m...@danielemargutti.com wrote: If I try to rotate my hostView.layer (CALayer) using the function below I get wrong coordinates when I try to click at the same (rotated)

Re: Rotated CALayer and issues with coordinates (should I convert them manually?)

2013-04-29 Thread Daniele Margutti
On Apr 29, 2013, at 10:18 AM, Daniele Margutti m...@danielemargutti.com wrote: What am I wong? Meanwhile I've discovered an interesting thing. In order to convert coordinates from my baseContainerView to inner hostView I've used CGPoint locationInHostView = [baseContainerView

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Keary Suska
On Apr 25, 2013, at 5:27 PM, Jason Brennan wrote: What I’m trying to do is have an NSTextView and add custom NSView subviews to it, but have it so the text can layout around the subviews. Right now, I can easily add a subview to the textview but of course, that goes into the textview and

Multiple untitled docs are saving to same file

2013-04-29 Thread Steve Mills
We just noticed something that is wrong. When our saveToURL:ofType:forSaveOperation:completionHandler override gets called for NSAutosaveElsewhereOperation on two different untitled docs, the url is exactly the same, so the 2nd one overwrites the 1st. Why? How does Cocoa formulate the url for

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Seth Willits
On Apr 25, 2013, at 4:27 PM, Jason Brennan wrote: What I’m trying to do is have an NSTextView and add custom NSView subviews to it, but have it so the text can layout around the subviews. You need a custom text container. See

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Seth Willits
On Apr 29, 2013, at 11:08 AM, Seth Willits wrote: What I’m trying to do is have an NSTextView and add custom NSView subviews to it, but have it so the text can layout around the subviews. You need a custom text container. See

Re: Multiple untitled docs are saving to same file

2013-04-29 Thread Mike Abdullah
On 29 Apr 2013, at 19:08, Steve Mills smi...@makemusic.com wrote: We just noticed something that is wrong. When our saveToURL:ofType:forSaveOperation:completionHandler override gets called for NSAutosaveElsewhereOperation on two different untitled docs, the url is exactly the same, so the

Re: Multiple untitled docs are saving to same file

2013-04-29 Thread Quincey Morris
On Apr 29, 2013, at 11:08 , Steve Mills smi...@makemusic.com wrote: We just noticed something that is wrong. When our saveToURL:ofType:forSaveOperation:completionHandler override gets called for NSAutosaveElsewhereOperation on two different untitled docs, the url is exactly the same, so

Form sheet not returning to center after dismissal

2013-04-29 Thread Rick Mann
I have a formsheet being displayed modally over another form sheet. When the user begins editing the text in one of the text fields, iOS correctly shifts up both form sheets (one hidden behind the other) to display the keyboard. If the user dismisses the keyboard, both sheets return to the

Re: LSGetApplicationForURL() failed Error -10814

2013-04-29 Thread Jerry Krinock
On 2013 Apr 27, at 01:39, Dhiraj Bhor dhirajbho...@gmail.com wrote: I am developing an application tool that requires a function which will give me users default browser name. See the two methods… +defaultBrowserBundleIdentifier +defaultBrowserDisplayName in here

Re: Multiple untitled docs are saving to same file

2013-04-29 Thread Jerry Krinock
On 2013 Apr 29, at 15:21, Quincey Morris quinceymor...@rivergatesoftware.com wrote: You should generate your own unique file name, then. There's no value in preserving the incoming file name anyway, is there, since you're returning a different URL, right? Don't be afraid to do what

Re: Multiple untitled docs are saving to same file

2013-04-29 Thread Steve Mills
On Apr 29, 2013, at 20:35:00, Jerry Krinock je...@ieee.org wrote: On 2013 Apr 29, at 15:21, Quincey Morris quinceymor...@rivergatesoftware.com wrote: You should generate your own unique file name, then. There's no value in preserving the incoming file name anyway, is there, since you're