Re: Isolated process for each NSDocument of my app

2013-06-14 Thread Daniele Margutti
On 14 Jun 2013, at 03:00, Graham Cox wrote: > 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 ask someone to help

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 >

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

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

Re: CALayer -displayLayer:inContext: never called during frame/bounds animation

2013-06-11 Thread Daniele Margutti
On 10 Jun 2013, at 16:50, David Duncan wrote: > The behavior you see is correct. Remember that the model layer (the layer you > have) only sees discrete values for an animation – typically the beginning > and end values. The intermediate values are generated by the Core Animation > for rende

CALayer -displayLayer:inContext: never called during frame/bounds animation

2013-06-08 Thread Daniele Margutti
Hi guys, I need to animate the frame of a CALayer instance; during the animation I should also update/redraw the content of the layer based upon the new size (frame by frame) of it. I've tried to watch and use -displayLayer:inContext: of CALayer (it's a delegate property) but It does not work:

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 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 = [base

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 wrote: > On Apr 27, 2013, at 2:48 AM, Daniele Margutti > 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 >

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

2013-04-28 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 subLay

CALayer with AppKit objects inside

2013-03-19 Thread Daniele Margutti
Hi guys, I'm working on a thing that involve CALayer as base container for objects instead of NSView (due to iOS compatibility issues). Now everything works fine, I can replicate touch events and some other interesting things; however I have a question: for some controls I would to use standard

NSOutlineView View Based and editing

2012-03-28 Thread Daniele Margutti
Hi guys, I'm working with the new NSOutlineView View based control. I've created my own NSTableCellView subclass where I've place some controls, one of them is an NSTextField. Now I would to implement a simple cell editing as like in the old cell-based table. So I've set a datasource and a deleg

Problem with plugin architecture development and subclass into bundles

2010-11-25 Thread Daniele Margutti
Hello List, I need to make a plug-in based application. The most common way is to define a protocol that each plugin (bundle) principal class must follow. However for some reasons I need to use subclasses instead of protocol. So I've a PluginLoader class and a BasePluginClass. This class is the su