Re: Delegate not getting called for CATiledLayer

2008-04-05 Thread John Clayton
;d be keen on knowing how you get on with this - ping me back if it works :-) --- john clayton shinywhitebox On 5/04/2008, at 8:01 PM, douglas a. welton wrote: Hi all, I'm developing an application that uses a CATiledLayer to host several sublayers full of user manipulated image content

CALayer + flickering redraw.

2008-04-28 Thread John Clayton
x27;d appreciate any tips that might lead to a solution I can share. Thanks -- John Clayton http://www.coderage-software.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Problems with Launchd Daemon

2008-04-28 Thread John Clayton
sample code - it takes you a long way toward the solution. -- john clayton On 28/04/2008, at 9:26 PM, Dave Camp wrote: On Apr 28, 2008, at 12:00 PM, JanakiRam wrote: I am developing a Mac cocoa application suite which has a launchd daemon ( which is a pure cocoa application ). I'm ab

Re: CALayer + flickering redraw.

2008-04-28 Thread John Clayton
e mad. I first thought maybe I was being silly and changing the colour many times per second, thus causing the flickering myself - but logging suggests that isn't the case. Ideas / suggestions welcome... -- John On 28/04/2008, at 3:28 PM, John Clayton wrote: Hi I've created a bord

Re: CGevent and cocoa compatibility

2008-05-02 Thread John Clayton
are doing - correct me if I'm wrong. Installing an event tap that modifies the event chain won't require special privs (from memory), so long as you don't install it at the window server level. Does this send you in the right direction? -- John Clayton http://www.coderage-softwar

Graphics seen when volume is modified.

2008-05-02 Thread John Clayton
. Any info about the box or code that emulates this would be useful, Thanks! -- John Clayton http://www.coderage-software.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

expose - the algorithm

2008-05-07 Thread John Clayton
know of literature or code / algorithms that I can look at to learn about how this is done or which approaches are possible? Cheers! -- John Clayton http://www.coderage-software.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: expose - the algorithm

2008-05-08 Thread John Clayton
Mac, there's no way I'm gonna fight that - a sad but true reality. Comments? Thanks -- John Clayton Skype: johncclayton On May 8, 2008, at 8:58 AM, Thomas Davie wrote: On 8 May 2008, at 06:04, Jens Alfke wrote: On 7 May '08, at 8:50 PM, John Clayton wrote: Does any

Re: list open application windows

2008-05-13 Thread John Clayton
you'll be able to query them at least. Enjoy. -- John Clayton http://www.coderage-software.com/ On May 13, 2008, at 8:13 AM, Ben Lowndes wrote: On Tue, May 13, 2008 at 4:01 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: I'm a cocoa newbie, so I may be missing something obvious h

glass effect - CG call to do this?

2008-05-15 Thread John Clayton
t now. Does anyone know if this exists and where it might be? (don't tell me I was just dreaming). Cheers, -- John Clayton http://www.coderage-software.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread John Clayton
0 2008-07-14 17:48:23.562 Annotate[42997:10b] after: x, y, x = 3.141593 / 1.021183 / 3.141593 Huh? Question 1: Why do X and Z get very close to PI? Question 2: Why does Y end up being 1.02 when I set it to 2.12041? Does anyone know what's going on here? I'm a little stumped by th

Re: CALayer transform, setting the Y value of rotation causes side-effects

2008-07-14 Thread John Clayton
yer instance, that in turn modifies the "transform.rotation.x/y/z" properties in turn. Cheers - your help is [hugely] appreciated. -- John Clayton On 14/07/2008, at 8:35 PM, David Duncan wrote: On Jul 14, 2008, at 9:57 AM, John Clayton wrote: Huh? Question 1: Why do X and Z get very close t

core data - delete of object.

2008-11-17 Thread John Clayton
ever called when the context is being saved - which in my case is (a) unpredictable, (b) too late . Help / tips are greatly appreciated, Thanks -- John Clayton Skype: johncclayton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: core data - delete of object.

2008-11-17 Thread John Clayton
need to change a property on A. Thanks -- John Clayton Skype: johncclayton On 17/11/2008, at 10:59 PM, Jim Correia wrote: On Nov 17, 2008, at 4:51 PM, John Clayton wrote: I'm using core-data and need to know when a particular core-data object (derived from NSManagedObject of course) i

core-data crash on save.

2008-11-18 Thread John Clayton
ariables or some other magic I can use to help find the problem here? Thanks -- John Clayton Skype: johncclayton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: core data - delete of object.

2008-11-18 Thread John Clayton
I guess processPendingChanges is only called if there is an undoManager? Correct? I don't have one - I disabled it intentionally. I've tried that notification, its only fired on save of the context. Thanks -- John Clayton Skype: johncclayton On 18/11/2008, at 1:22 PM, Ashley C

Re: core-data crash on save.

2008-11-18 Thread John Clayton
Hi there, comments embedded below... On 18/11/2008, at 7:06 PM, Quincey Morris wrote: On Nov 18, 2008, at 00:27, John Clayton wrote: In my program I have a check-box that switches a particular effect on/off, an opacity fade in this case. Switching the effect off will delete the effect

Re: core-data crash on save. [SOLVED]

2008-11-19 Thread John Clayton
s failed, why refactoring it has worked and most importantly, how I can continue / move forward. So all in all, success - my hat goes off to the people that took the time to answer me - thank you. -- John Clayton Skype: johncclayton On 19/11/2008, at 12:43 AM, Quincey Morris wrote: On Nov

registerDefaults error and NSCoding protocol

2008-11-27 Thread John Clayton
uot;YouTube" width:848 height:480]]; return array; } Am I forgetting something? I thought as long as my object could encode/ decode itself, all would be OK - anyone know what I'm doing wrong? Thanks -- John Clayton Skype: johncclayton _

question re: mem leak analysis and RSIZE

2008-11-28 Thread John Clayton
it? I'm not using Zombies, but I do have the debug library symbols installed. Any tips / help appreciated. Thanks -- John Clayton Skype: johncclayton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: question re: mem leak analysis and RSIZE

2008-11-28 Thread John Clayton
is up? In the end, I found this particular leak by using valgrind. -- John Clayton Skype: johncclayton On 28/11/2008, at 5:02 PM, John Clayton wrote: Hi All, I'm at the stage of performing a bit of leak analysis on my program, and I find something weird happening. Specifically

core data + undo + to-many relationship

2008-12-07 Thread John Clayton
ass was enough to get the undo management to work in this case - or did I misread the core-data docs? Any hints / tips appreciated. Thanks -- John Clayton Skype: johncclayton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: core data + undo + to-many relationship

2008-12-07 Thread John Clayton
your original actions. Of course, during an undo/redo, KVO notifications are fired, so your UI should be watching out for those in order to update itself. Mike. On 7 Dec 2008, at 11:42, John Clayton wrote: Hi everyone In a core-data model I have a 'layer' which contains a to-many

Re: core data + undo + to-many relationship

2008-12-07 Thread John Clayton
Actually, extra note here... Things would probably work OK in my code if the object's values hadn't been set to nil by the time I get a willTurnIntoFault message. Is there a way to be notified prior to the event taking place? Thanks -- John Clayton Skype: johncclayton On 7/1

core data + undo + accessors

2008-12-07 Thread John Clayton
y custom accessors on my NSManagedObject accessors. Further, the only reason I can see to have custom accessors would be to provide type safety and an easier programming interface to the core-data based API that I am writing. Have a missed the point? Are there other posts / articles you think

Re: core data, refreshObject, multiple threads

2008-12-07 Thread John Clayton
Chris, Can you make use of the - (void)refreshObject:(NSManagedObject *)object mergeChanges:(BOOL)flag method on NSManagedObjectContext? Thanks -- John Clayton Skype: johncclayton On 7/12/2008, at 12:22 PM, Chris Idou wrote: I've got fairly modest requirements, in so far as I&#x

CocoaHeads: switzerland / zurich area

2008-12-08 Thread John Clayton
ith! Thanks, happy coding. -- John Clayton Skype: johncclayton ___ 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.c

drag'n'drop - stopping the image from being displayed.

2008-12-22 Thread John Clayton
Is there a way to stop the image from being created/used? I am receiving drag operations in an instance of NSView of course, and obviously have implemented the draggingEntered:/Exited:/Updating: methods already. Thanks -- John Clayton

renderer CALayer via CARenderer into CGLContext (off screen)

2008-12-25 Thread John Clayton
bject from the pool and attach it to the CGLContext 3. render a single frame using the CARenderer 4. feed the pixel buffer to ICM 5. goto (2) if there are still some available pixel buffer objects in the pool Or am I completely missing the point? Th

CALayer and CGContexts

2008-07-30 Thread John Clayton
Rect: call - is that recommended? Or is there a simpler way? I do not want to simply use the delete drawLayer:inContext: method, because I need to be able to feed the image that I'm drawing into more than one layer. Thanks -- John Clayton Skyp

Re: how to tell if my app is visible.

2008-09-22 Thread John Clayton
Try looking into using the NSApplication delegate methods that inform you when your app becomes active/hidden, e.g. - (void)applicationDidBecomeActive:(NSNotification *)aNotification Thanks -- John Clayton On 22/09/2008, at 1:07 PM, Memo Akten wrote: Hi All, i have an app which is

CALayers inside NSSplitView (clipping issue)

2008-09-23 Thread John Clayton
t clip the CALayer *at all*, and I see this: http://skitch.com/johnclayton/s4gc/picture-2 I resize the contents of the split-view during mouseDragged: (along with its layers), does anyone know of issues with this or perhaps has an idea of whats going wrong? Thanks -- John Cla

Re: CALayers inside NSSplitView (clipping issue)

2008-09-24 Thread John Clayton
f the bug: http://skitch.com/johnclayton/s5fa/picture-3 so I wonder what is causing the calayer instance to NOT be clipped in this case. The NSClipView inside the scrollview should be clipping, right? Thanks -- John Clayton Skype: johncclayton On 24/09/2008, at 5:58 AM, John Clayton wrote:

Re: CALayers inside NSSplitView (clipping issue) [SOLVED]

2008-09-27 Thread John Clayton
#x27;t know - but I made this change as a part of another thing I was doing and noticed that the problem no longer occurs. John "why me?" Clayton On 24/09/2008, at 4:50 PM, John Clayton wrote: Hi All, Someone kindly suggested that I post the question again, but that this time

Detect dim/brightness keys on laptop

2009-12-25 Thread John Clayton
des. The only fly in the soup so far is that the brightness (F1 and F2 as well as the volume keys) are not seen by the event tap spike program that Ive written. Looking forward to any tips - thanks. -- John Clayton ___ Cocoa-dev mailing list