Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
On 17 Dec 2012, at 05:58, Tamas Nagy tamas.lov.n...@gmail.com wrote: It's a live video app, where rendering happening on a CVDisplayLink thread, so the app still running and do its job while an OpenPanel (or SavePanel) displaying. I just need to block the UI to make sure the users can't

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
I really appreciate your continuous curiosity guys, but we just getting off-topic :) BTW, its a realtime graphics application, where UI events should not blocking rendering. Think about a concert where some videos projected behind the band, it would be bad if opening the next video - putting

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
On 17 Dec 2012, at 09:26, Tamas Nagy tamas.lov.n...@gmail.com wrote: I really appreciate your continuous curiosity guys, but we just getting off-topic :) BTW, its a realtime graphics application, where UI events should not blocking rendering. Think about a concert where some videos

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
The user is still able to control things like fading with a MIDI/OSC controller - they definitely do not do that with mouse. But there are things which only controllable with the UI, deleting layers for example. And there are some circumstances - for example, loading a whole project, where the

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
On 17 Dec 2012, at 09:42, Tamas Nagy tamas.lov.n...@gmail.com wrote: The user is still able to control things like fading with a MIDI/OSC controller - they definitely do not do that with mouse. But there are things which only controllable with the UI, deleting layers for example. And there

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
There is a chance in the application where only one, borderless window displayed on the secondary screen, so there are possible circumstances where displaying a window-modal panel not quite useful. On Dec 17, 2012, at 10:50 AM, Tom Davie tom.da...@gmail.com wrote: On 17 Dec 2012, at

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tom Davie
On 17 Dec 2012, at 10:11, Tamas Nagy tamas.lov.n...@gmail.com wrote: There is a chance in the application where only one, borderless window displayed on the secondary screen, so there are possible circumstances where displaying a window-modal panel not quite useful. Okay, but your example

Dragging CALayer in an event loop

2012-12-17 Thread Graham Cox
I have a very simple piece of code that doesn't behave how I expected it to. When I drag a CALayer, it does not follow the mouse but snaps to its final location after I exit the loop. I've tried forcing the view to redisplay within the loop, etc but nothing works. How can I do this? -

Re: Correct way to make mutable and immutable objects?

2012-12-17 Thread Graham Cox
Thanks for your insights guys... I think the separate header for the mutating methods in a category should be enough in this case. --Graham On 16/12/2012, at 8:28 AM, Jens Alfke j...@mooseyard.com wrote: On Dec 14, 2012, at 3:25 PM, Graham Cox graham@bigpond.com wrote: I have an

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
Yep, its a design bug for sure, which I should and will fix. On Dec 17, 2012, at 11:14 AM, Tom Davie tom.da...@gmail.com wrote: On 17 Dec 2012, at 10:11, Tamas Nagy tamas.lov.n...@gmail.com wrote: There is a chance in the application where only one, borderless window displayed on the

Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Andreas Grosam
On 17.12.2012, at 11:25, Andreas Grosam wrote: I would like to use the property access syntax for a (readonly) property which is defined in a category and sent to an object whose compile type info is just id. Use case: id obj = …; if (obj.isFoo) { // == error: property 'isFoo' not

Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Roland King
On 17 Dec, 2012, at 7:20 PM, Andreas Grosam agro...@onlinehome.de wrote: On 17.12.2012, at 11:25, Andreas Grosam wrote: I would like to use the property access syntax for a (readonly) property which is defined in a category and sent to an object whose compile type info is just id. Use

[SOLVED] Re: Dragging CALayer in an event loop

2012-12-17 Thread Graham Cox
OK, this is a bit weird, but I found a simple solution. If I add NSOtherMouseDraggedMask to my list of masks, it works fine, even though in the body of the code I now only actually move the layers for the NSLeftMouseDragged event type! In addition, the docs for NSOtherMouseDraggedEvent suggest

Re: Property Declared in a Category and Sent to id

2012-12-17 Thread Andreas Grosam
On 17.12.2012, at 13:14, Roland King wrote: On 17 Dec, 2012, at 7:20 PM, Andreas Grosam agro...@onlinehome.de wrote: On 17.12.2012, at 11:25, Andreas Grosam wrote: I would like to use the property access syntax for a (readonly) property which is defined in a category and sent to an

Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-17 Thread Jon Gary
Containers/MyBundleId/Data/Library/Application Support/MyApp/MyFolderWhereRecycleFails -- Jon Gary / Object Orienteer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/ On Dec 14, 2012, at 6:51 PM, Mike Abdullah wrote: On 14 Dec 2012, at 21:26, Jon Gary wrote: I have a sandboxed

Re: NSWorkspace recycleURLs:completionHandler error -5000 (afpAccessDenied)

2012-12-17 Thread Kyle Sluder
On Mon, Dec 17, 2012, at 07:54 AM, Jon Gary wrote: Containers/MyBundleId/Data/Library/Application Support/MyApp/MyFolderWhereRecycleFails If the file is on a remote volume, the trash directory is actually /Volumes/$REMOTE_VOLUME/.Trashes/$UID. Sounds like the document is on an AFP volume and

Re: Dragging CALayer in an event loop

2012-12-17 Thread Gordon Apple
I would recommend subclassing CALayer and using a notification to update its position. Without more detail, I can¹t tell you exactly how to do this. I use movie layers which do track underlying draw objects when I drag them. On 12/17/12 6:14 AM, cocoa-dev-requ...@lists.apple.com

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Sean McBride
On Sun, 16 Dec 2012 21:46:14 -0800, Kyle Sluder said: Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point my application opens the open panel. I have to ask, why? Sometimes it's appropriate. Apple seems to think so, as File Open shows a

Re: Dragging CALayer in an event loop

2012-12-17 Thread Kyle Sluder
On Dec 17, 2012, at 2:15 AM, Graham Cox graham@bigpond.com wrote: I have a very simple piece of code that doesn't behave how I expected it to. When I drag a CALayer, it does not follow the mouse but snaps to its final location after I exit the loop. I've tried forcing the view to

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Sean McBride
On Sun, 16 Dec 2012 11:45:29 +0100, Tamas Nagy said: I'm trying to display an NSOpenPanel on a dispatch, with half-luck. The panel displays, but no files going to be displayed - the circle just spinning on the bottom-left corner. Anyone have an idea what going wrong? Others have explained what's

Simple question about storyboard

2012-12-17 Thread Jingwei XU
Hi everyone, I am a newbie in iOS field. I have a question about storyboard. If I use storyboard in a project, is this project is not compatible for iOS 4.3.3? Jingwei Xu -- ICS Group State Key Laboratory for Novel Software Technology Department of Computer Science and Technology Nanjing

LSSharedFileListInsertItemURL does not honor the display name or icon

2012-12-17 Thread Ben Staveley-Taylor
I am trying to add a new item to the Finder Sidebar Favorites kLSSharedFileListFavoriteItems list. The API for doing this, LSSharedFileListInsertItemURL, is not working for me. The Sidebar folder is created, but with a generic folder icon and the name taken from the target folder instead of

Re: Simple question about storyboard

2012-12-17 Thread Alex Kac
Storyboards are iOS 5+ only. On Dec 14, 2012, at 2:33 AM, Jingwei XU jingwei.xu@gmail.com wrote: Hi everyone, I am a newbie in iOS field. I have a question about storyboard. If I use storyboard in a project, is this project is not compatible for iOS 4.3.3? Jingwei Xu Alex Kac -

Freshly created .xcmappingmodel seems to have incorrect version hashes

2012-12-17 Thread Sean McBride
Hi all, I created a brand new .xcmappingmodel for version x to y of my xcdatamodel. I don't change anything in the mapping GUI. I clean. I build. I write some test code: NSURL* url = ...App.app/Contents/Resources/VersionXToY.cdm mappingModel = [[NSMappingModel alloc]

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Mike Abdullah
On 17 Dec 2012, at 17:15, Sean McBride s...@rogue-research.com wrote: On Sun, 16 Dec 2012 21:46:14 -0800, Kyle Sluder said: Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point my application opens the open panel. I have to ask, why?

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Kyle Sluder
On Mon, Dec 17, 2012, at 03:15 PM, Mike Abdullah wrote: On 17 Dec 2012, at 17:15, Sean McBride s...@rogue-research.com wrote: On Sun, 16 Dec 2012 21:46:14 -0800, Kyle Sluder said: Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Sean McBride
On Mon, 17 Dec 2012 23:15:15 +, Mike Abdullah said: For what it's worth, OS X v10.8 Mountain Lion finally fixes this by making open panels non-modal. I think apps do need to be built against the new SDK for it, rather than automatically switching over to such behaviour. In in 10.8.2 now, and

Re: Dragging CALayer in an event loop

2012-12-17 Thread Seth Willits
On Dec 17, 2012, at 2:15 AM, Graham Cox wrote: When I drag a CALayer, it does not follow the mouse but snaps to its final location after I exit the loop. I've tried forcing the view to redisplay within the loop, etc but nothing works. How can I do this? Use [CATransaction

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Kyle Sluder
On Mon, Dec 17, 2012, at 03:25 PM, Sean McBride wrote: On Mon, 17 Dec 2012 23:15:15 +, Mike Abdullah said: For what it's worth, OS X v10.8 Mountain Lion finally fixes this by making open panels non-modal. I think apps do need to be built against the new SDK for it, rather than

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Mike Abdullah
On 17 Dec 2012, at 23:29, Kyle Sluder k...@ksluder.com wrote: On Mon, Dec 17, 2012, at 03:25 PM, Sean McBride wrote: On Mon, 17 Dec 2012 23:15:15 +, Mike Abdullah said: For what it's worth, OS X v10.8 Mountain Lion finally fixes this by making open panels non-modal. I think apps do

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Charles Srstka
On Dec 17, 2012, at 5:29 PM, Kyle Sluder k...@ksluder.com wrote: On Mon, Dec 17, 2012, at 03:25 PM, Sean McBride wrote: On Mon, 17 Dec 2012 23:15:15 +, Mike Abdullah said: For what it's worth, OS X v10.8 Mountain Lion finally fixes this by making open panels non-modal. I think apps do