Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Kevin Ross
in the docs that say to avoid it. Thanks again for your help, Kevin Ross On Oct 1, 2010, at 1:20 PM, Scott Ribe wrote: > On Oct 1, 2010, at 2:15 PM, Kevin Ross wrote: > >> libsqlite3.dylib mallocs 35 objects that are still considered "live" > > Sqlite m

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Kevin Ross
he memory "live". Thanks for your help in this matter, it's been driving me crazy for a few days. Sincerely, Kevin Ross On Oct 1, 2010, at 1:00 AM, Dave Keck wrote: > Since you're writing a daemon, you'll need to handle autorelease-pool > creation and draining manua

Continuously running daemon process CFConstantStringRefs build up over time

2010-09-30 Thread Kevin Ross
to get around the problem and I think I must be overlooking something. Any help would be greatly appreciated as I've tried googling and re-reading the background daemon tech notes and have turned up nothing. Thank you for your help. Si

Re: Questions on using using modal sheets with Core Data

2009-06-14 Thread Kevin Ross
dency somewhere. Thanks for the tips! Kevin On Jun 12, 2009, at 12:55 PM, Kevin Ross wrote: Thanks Dave, I'm creating a new MOC in the sheet and hooking it up to the same persistent store as the document, so when the NSArrayController performs it's initial fetch at load (I have

Re: Questions on using using modal sheets with Core Data

2009-06-12 Thread Kevin Ross
uot;dependent on others" and "propogated"? Is there some KVO dependence, or have you defined keyPathsForValuesAffectingValueForKey: or used the deprecated setKeys:triggerChangeNotificationsForDependentKey:? Dave On Jun 12, 2009, at 12:59 PM, Kevin Ross wrote: I adapted

Re: Questions on using using modal sheets with Core Data

2009-06-12 Thread Kevin Ross
heet? I have the controller set to automatically prepare content, should I turn that off and manually perform the fetches? Thanks for your time, Kevin On Jun 11, 2009, at 8:31 PM, Dave Fernandes wrote: This is explained in the NSPersistentDocument tutorial in the docs. On Jun 11, 2009, at 10:03 PM

Re: Questions on using using modal sheets with Core Data

2009-06-11 Thread Kevin Ross
Jeez, I forgot to explain that posting the notification would happen when the user accepts the changes made in the modal window. I hope it make a little more sense now. Thanks, Kevin On Jun 11, 2009, at 7:03 PM, Kevin Ross wrote: Hi all, have a Core Data document based application

Questions on using using modal sheets with Core Data

2009-06-11 Thread Kevin Ross
Hi all, have a Core Data document based application which uses modal sheets as a way for the user to edit the document's data. What is the best way to give the sheet the ability to operate on a copy of the data with the parents sheet's undo context? And how best to merge these changes wit

Re: Printing a layer-backed NSView

2009-06-09 Thread Kevin Ross
animation when transforming certain elements. Thank you for the link as well, I'll file it away with the rest of my notes. Kevin Ross On Jun 9, 2009, at 11:30 AM, douglas welton wrote: Hi Kevein, Searching the archives at CocoaBuilder returns the following results (and ans

Printing a layer-backed NSView

2009-06-09 Thread Kevin Ross
ing to get the view to print? Thanks for any suggestions! Kevin Ross ___ 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

Re: Setting wantsLayer = YES; crashes on view load.

2009-06-02 Thread Kevin Ross
Turns out I did have an spurious NSNotificationCenter registration in a loaded view that was causing the crash. Thank you for your help Michael! On Jun 1, 2009, at 7:31 PM, Kevin Ross wrote: I looked at the msgSends dump of everything after setWantsLayer, and at the end it looks like a

Re: Setting wantsLayer = YES; crashes on view load.

2009-06-01 Thread Kevin Ross
newTempNotificationWithName:object:userInfo: - NSCFString NSCFString copyWithZone: Is there a way using instruments or dtrace to find out what objects are being passed to newTempNotificationWithName:object:userInfo? Thank you for your time, Kevin On Jun 1, 2009, at 1:27 PM, Kevin Ross

Re: Setting wantsLayer = YES; crashes on view load.

2009-06-01 Thread Kevin Ross
n Jun 1, 2009, at 12:07 AM, Michael Vannorsdel wrote: Are you registering for any notifications? It looks like it's crashing while trying to notify an object. On Jun 1, 2009, at 12:31 AM, Kevin Ross wrote: Hi everyone, I have a Core Data document based app that I've been working

Setting wantsLayer = YES; crashes on view load.

2009-05-31 Thread Kevin Ross
rom setting a view's wantsLayer property to YES? Thank you for taking time to read this. Kevin Ross Stack Trace of crash: #0 0x9129c688 in objc_msgSend () #1 0x91bbe7a6 in +[NSConcreteNotification newTempNotificationWithName:object:userInfo:] () #2 0x91bc158d in _nsnote_call

NSAccessibilityAttributeValue exception raised when hovering mouse over top menu bar

2009-05-11 Thread Kevin Ross
istInMode () #12 0x94e8cd7d in _DPSNextEvent () #13 0x94e8c630 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #14 0x94e8566b in -[NSApplication run] () #15 0x94e528a4 in NSApplicationMain () #16 0x2af2 in main (argc=5, argv=0xb5fc) Thank you all for any suggest

Re: NSString and Leaks Instrument, False Positives?

2009-03-23 Thread Kevin Ross
Thanks Bill, I've reported the problem to bugreporter (#6710982). Thanks for helping figure it out! Kevin On Mar 21, 2009, at 5:33 PM, Bill Bumgarner wrote: On Mar 21, 2009, at 5:09 PM, Kevin Ross wrote: KRStarChartMO drawPortentsInRect:circleStyle:] | +[NSFont fontWithName

Re: NSString and Leaks Instrument, False Positives?

2009-03-21 Thread Kevin Ross
f 0x 0x ry Port. On Mar 21, 2009, at 5:02 PM, Bill Bumgarner wrote: On Mar 21, 2009, at 4:56 PM, Kevin Ross wrote: Leak: 0x15fd4ac0 size=32 instance of 'NSCFString', type ObjC, implemented in CoreFoundation 0xa00664a0 0x0100078c 0x5354410e 0x657

Re: NSString and Leaks Instrument, False Positives?

2009-03-21 Thread Kevin Ross
n Sat, Mar 21, 2009 at 4:43 PM, Kevin Ross wrote: Whoops, I thought that I'd also mention that I've run the code though the clang static analyzer and it doesn't report that there are any bugs. I'm also happy to post more code if it will help. Thanks again! Kevin

Re: NSString and Leaks Instrument, False Positives?

2009-03-21 Thread Kevin Ross
be careful with clang, sometimes is missing point, your problem is coming not from this @"Arial Bold", give the complete stack and explain what is the condition of the leak False/positive: I have an extensive use of perf tools since years and I didn't see that since a while the leak can

Re: NSString and Leaks Instrument, False Positives?

2009-03-21 Thread Kevin Ross
Whoops, I thought that I'd also mention that I've run the code though the clang static analyzer and it doesn't report that there are any bugs. I'm also happy to post more code if it will help. Thanks again! Kevin On Mar 21, 2009, at 4:36 PM, Kevin Ross wrote: Hi ev

NSString and Leaks Instrument, False Positives?

2009-03-21 Thread Kevin Ross
ese be false positives generated by the leaks tool, or is there something that I'm missing? Thanks for any pointers! Kevin Ross Twenty-Four Mountains Mac Feng Shui Software ke...@twentyfourmountains.com twentyfourmountains.com ___ Cocoa-de

Re: Core Data, Garbage Collection and SQL Store

2009-01-31 Thread Kevin Ross
significant slowdown when writing atomically versus w/ SQL. -K On Jan 30, 2009, at 3:09 PM, Kevin Ross wrote: On Jan 30, 2009, at 3:02 PM, Sean McBride wrote: On 1/30/09 2:49 PM, Kevin Ross said: If it's not too much trouble are you able to send me your repro project? I'm wo

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
On Jan 30, 2009, at 3:02 PM, Sean McBride wrote: On 1/30/09 2:49 PM, Kevin Ross said: If it's not too much trouble are you able to send me your repro project? I'm wondering why it's not happening with my project anymore. I'm afraid the bug I filed contains not a simp

Re: Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
On Jan 30, 2009, at 9:37 AM, Sean McBride wrote: On 1/30/09 9:14 AM, Kevin Ross said: It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been

Core Data, Garbage Collection and SQL Store

2009-01-30 Thread Kevin Ross
w instances of each object. I haven't seen this issue in quite a while and I was wondering if it might be safe to release it with SQL set as the default backing store? Thank you for any insights you may have into this matter. Kevin Ross Feng Shu

Re: Dates of the Chinese New Year

2009-01-25 Thread Kevin Ross
On Jan 25, 2009, at 12:12 PM, Nick Zitzmann wrote: On Jan 25, 2009, at 11:55 AM, Kevin Ross wrote: I see that in the docs that the Chinese calendar is not supported on 10.4-5. Does anyone know if one of the other calendars (NSBuddhistCalendar or NSJapaneseCalendar maybe?) would be able

Dates of the Chinese New Year

2009-01-25 Thread Kevin Ross
Hello everyone, I see that in the docs that the Chinese calendar is not supported on 10.4-5. Does anyone know if one of the other calendars (NSBuddhistCalendar or NSJapaneseCalendar maybe?) would be able to find the beginning of the Chinese New Year? Any insights would be much appreciate

[PDFDocument documentRef] internal method questions.

2008-07-14 Thread Kevin Ross
In my subclassing PDFDocument adventures I wanted to add a method to my subclass like so: - (CGPDFDocumentRef)documentRef; I realized that it was overriding an internal PDFDocument method that I was unaware of. This actually helps a big performance bottleneck in the application because I

Re: PDFDocument Subclass and Undo Manager Redux

2008-07-14 Thread Kevin Ross
Well after making some tweaks I seem to have it working. I'm not sure if it was something that I did or if the 10.5.4 update could have fixed the undo manager bug in PDFView. Anyway, I've got it working, thanks! - Kevin On Jul 11, 2008, at 3:31 PM, Kevin Ross wrote: Hello

PDFDocument Subclass and Undo Manager Redux

2008-07-11 Thread Kevin Ross
Hello cocoa-devs! I'm not sure if I'm heading in the right direction here or if I'm running off into the brush... I have a PDFDocument subclass that has it's own undoManager. This is so it can perform transformations upon itself and undo/redo. The trouble is when I try to integrate it in

Re: PDFDocument subclass with an undo manager

2008-07-01 Thread Kevin Ross
ndoManager prepareWithInvocationTarget:self] myInitWithData: [self oldData]]; [self initWithData:newData]; } hth, cheers, Graham On 1 Jul 2008, at 9:02 am, Kevin Ross wrote: Hi everyone, I have a question that might seems a little silly. I have a PDFDocument subclass which can perform page impositions.

PDFDocument subclass with an undo manager

2008-06-30 Thread Kevin Ross
Hi everyone, I have a question that might seems a little silly. I have a PDFDocument subclass which can perform page impositions. I would also like to be able to undo the impositions. In the methods I have this when I make the change to the PDF: [[undoManager prepareWithInvocationTarget:

Re: PDFDocuments and CGPDFDocuments

2008-05-31 Thread Kevin Ross
Whoops, I sent this yesterday but didn't hit reply-all... Thanks Joel, I just took a look at the PDFAnnotationEditor example. It seems to be doing all of it's transformations in the PDFView subclass. I'm not sure if I am able to do this since I would like to perform the impositions by wor

Re: PDFDocuments and CGPDFDocuments

2008-05-31 Thread Kevin Ross
mentRef to draw into a custom quartz context. If there is a more sane way to accomplish these tasks please let me know!:) Thank you for your help! - Kevin On May 30, 2008, at 12:59 PM, John Calhoun wrote: On May 29, 2008, at 6:50 PM, Kevin Ross wrote: I think there has to be eithe

PDFDocuments and CGPDFDocuments

2008-05-29 Thread Kevin Ross
Hi everyone, I seem to have run into a little snag recenlty. I have an application that manipulates PDF files (scaling, imposition, transforms...). I am using a PDFView for the interface but performing all of the transformations in Quartz. I find myself shuttling data back and forth by u

Custom Value Transformer for PDFDocument data

2008-05-10 Thread Kevin Ross
Hello, I'm thinking of implementing a Custom Value Transformer to add PDFDocument support to a MangedObject. I just want to see if I'm on the right track or not. The code below works, I'm just not sure if this is the proper way to do this. Thanks for your feedback. @implementation PDFDat

Re: PDFView and Core Data undos

2008-04-13 Thread Kevin Ross
I've been struggling for the past week with the exact same problem. Does anyone know of a workaround, or should I just roll my own PDFView and PDFThumbnailView? Thanks for any ideas. Kevin On Apr 8, 2008, at 3:41 PM, Antonio Nunes wrote: On Apr 8, 2008, at 10:19 PM, Justin Hawkwood wrote