Re: Asynchronously mounting a remote file server?

2013-06-13 Thread Jens Alfke
On Jun 13, 2013, at 2:17 PM, Rick Mann wrote: > I'd like to be smarter about this in my own apps. Is there a test I can > perform before accessing aliases I've stored, or an async way to open/read > from files that won't block the main thread? It’s not opening or reading from the file that’s

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Graham Cox
On 14/06/2013, at 5:06 AM, Daniele Margutti wrote: > That’s not possible No offence, but when a programmer says this, all they're doing is revealing their own inexperience. I mean that in a friendly way; I've been there many times myself. There *is* a way, you just have to figure it out (or

Re: -[NSManagedObjectContext performBlock:] concurrent or serial?

2013-06-13 Thread Rick Mann
On Jun 13, 2013, at 16:03 , davel...@mac.com wrote: > > On May 31, 2013, at 7:40 PM, Rick Mann wrote: > >> Hi. If I issue a bunch of -performBlock: calls on a particular Managed >> Object Context, will they execute serially or concurrently? >> >> Thanks, >> >> -- >> Rick > > I'm assuming

Re: -[NSManagedObjectContext performBlock:] concurrent or serial?

2013-06-13 Thread davelist
On May 31, 2013, at 7:40 PM, Rick Mann wrote: > Hi. If I issue a bunch of -performBlock: calls on a particular Managed Object > Context, will they execute serially or concurrently? > > Thanks, > > -- > Rick I'm assuming serially and I would like to know too so I was hoping someone would pr

Re: iOS Visual Element [link fixed]

2013-06-13 Thread koko
Here is a picture from the docs .. http://highrolls.net/UIActionSheet.png On Jun 13, 2013, at 4:29 PM, koko wrote: > It is UIActionSheet .. > UIActionSheet Class Reference > > On Jun 13, 2013, at 4:03 PM, "Julius Oklamcak" wrote: > >> http://stackoverflow.com/questions/10744260/uipopover-how

Re: iOS Visual Element [link fixed]

2013-06-13 Thread koko
It is UIActionSheet .. UIActionSheet Class Reference On Jun 13, 2013, at 4:03 PM, "Julius Oklamcak" wrote: > http://stackoverflow.com/questions/10744260/uipopover-how-do-i-make-a-popove > r-with-buttons-like-this > > -Original Message- > From: cocoa-dev-bounces+juliuso=icodemonks@l

Re: iOS Visual Element [link fixed]

2013-06-13 Thread Alex Zavatone
One really easy way is to use a UITableViewController. The link you sent looks a little different, but that's one way to think approach it. On Jun 13, 2013, at 3:40 PM, koko wrote: > > http://highrolls.net/view.png > > > > ___ > > Cocoa-dev mai

Re: iOS Visual Element [fuggedaboutit]

2013-06-13 Thread koko
On Jun 13, 2013, at 1:40 PM, koko wrote: > > http://highrolls.net/view.png > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at coc

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Rick Mann
On Jun 13, 2013, at 14:30 , Kyle Sluder wrote: > I don't work on iOS stuff enough to have a good answer for you here. Fair enough; thanks for the suggestion, in any case. Do the settings around automatic layout and resizing apply to the view you set them on, or children of that view (or both)

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Kyle Sluder
On Thu, Jun 13, 2013, at 02:15 PM, Rick Mann wrote: > > On Jun 13, 2013, at 14:13 , Kyle Sluder wrote: > > > During pinching and zooming, remove all constraints involving the view, > > turn on translatesAutoresizingMaskIntoConstraints for that view, and > > directly manipulate its bounds and rot

Asynchronously mounting a remote file server?

2013-06-13 Thread Rick Mann
I'm not sure if this is the right list for this question. If not, please let me know what would be better (macnetworkprog?). One drawback to aliases on OS X is that if the target item is on a remote server, the system will usually try to automatically mount that server volume whenever the alias

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Rick Mann
On Jun 13, 2013, at 14:13 , Kyle Sluder wrote: > During pinching and zooming, remove all constraints involving the view, > turn on translatesAutoresizingMaskIntoConstraints for that view, and > directly manipulate its bounds and rotation. Reinstall the constraints > when you're done. Wow, reall

Re: Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Kyle Sluder
On Thu, Jun 13, 2013, at 01:52 PM, Rick Mann wrote: > I'm still having trouble implementing two-finger rotation and zoom > gestures inside a UIScrollView with autolayout. > > I have a large image that I want the user to be able to pinch zoom, and > rotate, and pan around in. I can't see what const

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Kyle Sluder
On Thu, Jun 13, 2013, at 12:06 PM, Daniele Margutti wrote: > That’s not possible due to some important reason I can’t explain here :( It's far more possible than trying to slice portions of your app into subprocesses. --Kyle Sluder ___ Cocoa-dev maili

Supporting rotation and zoom gestures with autolayout?

2013-06-13 Thread Rick Mann
I'm still having trouble implementing two-finger rotation and zoom gestures inside a UIScrollView with autolayout. I have a large image that I want the user to be able to pinch zoom, and rotate, and pan around in. I can't see what constraints to use to make this work without it resizing the ent

Re: iOS Visual Element [link fixed]

2013-06-13 Thread koko
http://highrolls.net/view.png ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Sub

iOS Visual Element

2013-06-13 Thread koko
Besides a UIPopoverController, how is the content view of the UIPopoverController constructed: view.png 291×204 pixels I see it a lot in iPad apps and need to use it. -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Tom Davie
On 13 Jun 2013, at 20:29, Daniele Margutti wrote: > > On 13 Jun 2013, at 20:05, Tom Davie wrote: > >> The best way is to write an application that's stable. The only reason >> browsers started doing this was because they had to deal with 3rd party code >> (e.g. flash) that was giving them

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Daniele Margutti
On 13 Jun 2013, at 21:04, Jens Alfke wrote: > > On Jun 13, 2013, at 11:29 AM, Daniele Margutti > wrote: > >> Overall stability is not my reason to evaluate this kind of a architecture; >> for a particular reason each document should interact with an external >> singleton class but each sin

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Jens Alfke
On Jun 13, 2013, at 11:29 AM, Daniele Margutti wrote: > Overall stability is not my reason to evaluate this kind of a architecture; > for a particular reason each document should interact with an external > singleton class but each singleton must be unique around the app; think about > UIAppl

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Daniele Margutti
On 13 Jun 2013, at 20:05, Tom Davie wrote: > The best way is to write an application that's stable. The only reason > browsers started doing this was because they had to deal with 3rd party code > (e.g. flash) that was giving them a terrible reputation for instability. If > you're controlli

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Tom Davie
The best way is to write an application that's stable. The only reason browsers started doing this was because they had to deal with 3rd party code (e.g. flash) that was giving them a terrible reputation for instability. If you're controlling the entire app, you have no reasonable reason to do th

Prevent NSLevelIndicatorCell change when clicking in non-selected row

2013-06-13 Thread Trygve Inda
I have an NSTableView and one column uses NSLevelIndicatorCell. I want to prevent the action from being run (so that it can't be changed) if the click is in a non-selected row. This is to prevent accidental changes. Ideas? Thanks, Trygve ___ Cocoa

Re: Isolated process for each NSDocument of my app

2013-06-13 Thread Jens Alfke
On Jun 13, 2013, at 3:52 AM, Daniele Margutti wrote: > In this case each process is isolated from the others as like with Safari. > What’s the best way to accomplish it on OS X? There is no [public] support for running parts of the GUI of an app in separate processes. It requires things like s

Re: knowing if a titlebar click is actually a resize click

2013-06-13 Thread Steve Mills
On Jun 12, 2013, at 20:35:40, Ken Thomases wrote: > I'm not sure I understand. It's running an internal event loop? If that's > the case, then you definitely get the NSWindowWillStartLiveResizeNotification > before seeing an NSLeftMouseDragged. So, while you would have had to set up > for y

Isolated process for each NSDocument of my app

2013-06-13 Thread Daniele Margutti
Hi guys, While I’m making an app (it’s docs based) I would to have a separated process for each opened NSDocument. The main idea is to have the main app which launch a process for each opened NSDocument/NSWindow and forward all messages to foreground window/process. In this case each process is i