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
isolated from the others as like with Safari. What’s the best way to accomplish it on OS X? Thanks a lot Daniele ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

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
with validateProposed... in my cell. Any idea? What's wrong? TIA Daniele ___ 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.appl

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

INSTALL_PATH ignored in XCode

2010-09-13 Thread Daniele
Hello guys, I'm making a plugin extensible application with bundles. Now, when I compile each bundle I would to put it automatically in a certain location in order to make some tests. My location is a folder inside Application Support. So I've taken the bundle target of my plugin project and I've

Re: Validating unique objects in CoreData

2010-02-14 Thread daniele malcom
has overhead, if you make it much larger > than 100 you have the save overhead less often but you have to scan more > in-memory objects, it's a compromise. > 1000 checks and inserts a second seems .. about ok to me and if you make > sure and save the context regularly, you should be

Re: Validating unique objects in CoreData

2010-02-13 Thread daniele malcom
Hi Roland, in fact indices table exists (for DDArticle entity): Enter SQL statements terminated with a ";" sqlite> .tables ZDDARTICLE    Z_METADATA    Z_PRIMARYKEY sqlite> .indices ZDDARTICLE ZDDARTICLE_ZMESSAGEID_INDEX ZDDARTICLE_ZPARENT_INDEX With my macbook pro insertion of 30k articles took ab

Re: Validating unique objects in CoreData

2010-02-13 Thread daniele malcom
On Sat, Feb 13, 2010 at 4:06 AM, Roland King wrote: > That's not a horrible solution, except for the feeling that core data ought > to let you do what you want without having to implement your own UUID cache. > I'm still a bit surprised that a lookup for an object by one attribute is > taking so

Thread and event loop.

2008-10-13 Thread Daniele Basile
thread, without subclass the NSView class? Thanks. Daniele -- | [D]-o Ing. Daniele Basile - [EMAIL PROTECTED] | ||}-o Develer S.r.l., R&D dept. | [B]-o http://www.develer.com - http://www.bertos.org ___ Cocoa-dev mailing list (Cocoa

Catch Tablet Event.

2008-10-09 Thread Daniele Basile
event (point and proximity). There is a way to read event and manage it in the secondary thread, before they are dispatched? Can have access to the event loop, and manage by hand the dispatcher? thanks. -- | [D]-o Ing. Daniele Basile - [EMAIL PROTECTED] | ||}-o Develer S.r.l., R&D dept.

Write app without nib file.

2008-10-03 Thread Daniele Basile
t;);} } @end -- This code draw a window with one button that, I press it, the program quit. I see the window and button work, but the myView class seem not receive the windows events.. Ha

Handling User Generated Tablet Events

2008-09-24 Thread Daniele Basile
event to wacom driver - I want use cocoa.. Thanks. -- | [D]-o Ing. Daniele Basile - [EMAIL PROTECTED] | ||}-o Develer S.r.l., R&D dept. | [B]-o http://www.develer.com - http://www.bertos.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: 10.5.2 broke my open panel code!

2008-02-21 Thread Daniele Pizzoni
n Feb 21, 2008, at 5:47 AM, Daniele Pizzoni wrote: Same issue here. This was present in 10.5.0, resolved in 10.5.1, reappeared in 10.5.2 Clicking on Media > Photo in open panel crashes app: Stack trace: 0 libobjc.A.dylib 0x91df46e8 objc_msgSend + 24 1 com.appl