Re: Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Barry Wark
On Wed, Sep 1, 2010 at 3:52 PM, Greg Parker wrote: > On Sep 1, 2010, at 11:15 AM, Barry Wark wrote: >> I'm getting intermittent crashes in my test suite for a GC application >> on OS X 10.6.4. The KERN_INVALID_ADDRESS at 0x00090028 occurs >> in

Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Barry Wark
I'm getting intermittent crashes in my test suite for a GC application on OS X 10.6.4. The KERN_INVALID_ADDRESS at 0x00090028 occurs in 0 libobjc.A.dylib0x7fff82ac847b _class_shouldFinalizeOnMainThread + 4 within the Dispatch queue: Garbage Collection Work Queue

Re: Synthesized ivar for std::tr1::shared_ptr?

2010-05-07 Thread Barry Wark
On Fri, May 7, 2010 at 12:37 PM, Greg Parker wrote: > On May 7, 2010, at 12:33 PM, Kyle Sluder wrote: >> On Fri, May 7, 2010 at 12:29 PM, Greg Parker wrote: >>> Is there some reason why you can't declare your instance variables >>> explicitly, and tell @synthesize to use that ivar in the synthes

Re: Synthesized ivar for std::tr1::shared_ptr?

2010-05-07 Thread Barry Wark
On Thu, May 6, 2010 at 4:38 PM, Kyle Sluder wrote: > On Thu, May 6, 2010 at 4:18 PM, Barry Wark wrote: >> Thank you all for the suggestions. Using manual dynamic memory >> allocation somewhat defeats the purpose of using smart pointers, but >> it looks like that's th

Re: Synthesized ivar for std::tr1::shared_ptr?

2010-05-06 Thread Barry Wark
ers, Barry On Thu, May 6, 2010 at 4:28 AM, Sherm Pendley wrote: > On Thu, May 6, 2010 at 2:19 AM, Barry Wark wrote: >> I'm no C++ guru, so I'm hoping someone can help me by explaining why >> the following gives a compiler error: > > I'm no guru either, but

Synthesized ivar for std::tr1::shared_ptr?

2010-05-05 Thread Barry Wark
I'm no C++ guru, so I'm hoping someone can help me by explaining why the following gives a compiler error: //MyObjC.h @interface MyObjC : NSObject {} @end //MyObjC.mm #import "MyObjC.h" #include "MyClass.h" //provides MyClass, a C++ class #include using std::tr1::shared_ptr; @interface MyObjC

NSPredicateEditor, _NSRuleEditorViewUnboundRowHolder and boundArray error moving to 10.6

2010-04-08 Thread Barry Wark
I have an application originally written for the 10.5 SDK. The app presents a document modal sheet (owned by a separate NSWindowController subclass) which contains an NSPredicateEditor. Starting with the move to OS X 10.6, I am getting the following exception when calling setObjectValue: on the pre

Finder style dialog to resolve NSURL bookmark data for missing file?

2010-02-09 Thread Barry Wark
I am using the new NSURL bookmark data API introduced in OS X 10.6 to store an "alias" to a file system resource. When I use +[NSURL URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:] to resolve the bookmark data, I get nil if the file no longer exists (or has been move

Re: Core Data - any way to back it with something other than SQLite 3?

2009-11-30 Thread Barry Wark
You might take a look at the BaseTen framework (http://basetenframework.org/). It claims to be a Core Data-like API on top of PostgreSQL. I haven't used it myself but have been following the project. On Thu, Nov 26, 2009 at 6:53 PM, William Squires wrote: > Hi all! >  Is there a way to back a Cor

otest output in xUnit XML format?

2009-08-19 Thread Barry Wark
I'm trying to integrate OCUnit unit tests more fully with our continuous integration system. Out of the box, Hudson supports test output in the xUnit XML format produced by JUnit, CppUnit, nose (a python test framework), etc. Is there any way to get otest to produce this XML formatted output? If no

Clarification of NSPredicate constraints for Core Data SQL store

2009-06-30 Thread Barry Wark
In the "Constraints and Limitations" section of the Predicate Programming Guide (http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/Articles/pBasics.html#//apple_ref/doc/uid/TP40001792-249799), the second bullet states than only one operator (ALL, IN, ANY) and only one instance of

Re: CoreData migration and file change

2009-02-04 Thread Barry Wark
I recently asked a related question on StackOverflow: http://stackoverflow.com/questions/380076/manual-core-data-schema-migration-without-document-changed-warning. The answer should help you out. On Tue, Feb 3, 2009 at 9:08 AM, Dan Grassi wrote: > I have a CoreData application and am migrating th

Re: NSOperationQueue bug with leopard 10.5.6?

2009-02-02 Thread Barry Wark
On Fri, Jan 30, 2009 at 9:27 PM, Michael Ash wrote: > On Fri, Jan 30, 2009 at 11:25 PM, Nick Zitzmann wrote: >> >> On Jan 30, 2009, at 6:32 PM, jurin...@eecs.utk.edu wrote: >> >>> I attempted to use NSOperationQueue with NSInvocationOperations and after >>> several frustrating days found multiple

Re: Log4Cocoa

2009-01-21 Thread Barry Wark
On Wed, Jan 21, 2009 at 1:15 PM, Kyle Sluder wrote: > On Wed, Jan 21, 2009 at 2:58 PM, Robert Kukuchka wrote: >>I'm looking into logging frameworks and see references to this >> project. Does anyone know if this project is still running? I was hoping to >> find some examples of how to get

Re: How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Barry Wark
On Fri, Jan 16, 2009 at 3:00 PM, Quincey Morris wrote: > On Jan 16, 2009, at 10:00, Barry Wark wrote: > >> I would like to encapsulate the management of this external file in >> the model-related classes since I will need the same functionality >> during schema migr

How to manage a separate data file while saving an NSPersistentDocument or during schema migration

2009-01-16 Thread Barry Wark
Following the advice in http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468-SW5 regarding storage of BLOBs, I've chosen to store binary data for my NSPersistenDocument-based app (Leopard-only, if that makes a difference) in a

Re: Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?

2009-01-07 Thread Barry Wark
curious, an other working solution is documented here: http://stackoverflow.com/questions/380076/manual-core-data-schema-migration-without-document-changed-warning . > > On Dec 15, 2008, at 10:29 AM, Barry Wark wrote: > >> The data model for my Core Data document-based app (10.5 only) i

Re: Visualization strategy/choosing a framework

2009-01-06 Thread Barry Wark
On Wed, Dec 31, 2008 at 7:19 PM, Adam Foltzer wrote: > Hello everyone, > > I've been lurking here for a while as I've been learning the Cocoa ropes, > and I'm at the point where I need to put the (excellent) Hillegass theory > into practice. My app is an interactive particle swarm optimization ( >

Manual Core Data schema migration in -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:...] without "document changed" error?

2008-12-15 Thread Barry Wark
The data model for my Core Data document-based app (10.5 only) is in a framework, so automatic schema upgrades using a Core Data mapping model don't appear to work. It appears that the Core Data machinery doesn't find the appropriate data models or mapping model when they are not in the app's main

Re: CoreData - Multiple Model Files?

2008-11-12 Thread Barry Wark
If you want to treat multiple model files as if they were one (ie with relationships spanning the entities in both files), you're going to have to do a lot of extra work. Check out this post from Scott Hanson :http://stackoverflow.com/questions/130316/cross-model-relationships-in-nsmanagedobjectmod

Re: Cocoa and NSLog

2008-11-10 Thread Barry Wark
On Sun, Nov 9, 2008 at 2:03 PM, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > Is it possible to open an Additional file for use by logging in Cocoa > (I want it to contain ONLY the info logged from my App) I would suggest you check out the Apple System Logging facility (asl.h). It allows you to send

Re: Modifying NSDatePicker for automatically generated predicate row templates

2008-10-21 Thread Barry Wark
On Tue, Oct 21, 2008 at 3:18 PM, Peter Ammon <[EMAIL PROTECTED]> wrote: > > On Oct 21, 2008, at 2:21 PM, Ashley Clark wrote: > >> On Oct 21, 2008, at 3:45 PM, Peter Ammon wrote: >> >>> On Oct 21, 2008, at 9:35 AM, Barry Wark wrote: >>>

Automatically generated predicate row templates for to-many key?

2008-10-21 Thread Barry Wark
Continuing my adventures with NSPredicateEditor... In my Core Data managed object model, I have an entity Foo with a to-many relationship (with a to-many inverse) to entity Baz named baz. Baz has a string property named "tag". When I use [NSPredicateRowEditorTemplate templatesWithAttributeKeyPaths

Modifying NSDatePicker for automatically generated predicate row templates

2008-10-21 Thread Barry Wark
I'm using [NSPredicateRowEditorTemplate templatesWithAttributeKeyPaths:inEntityDescription:] to generate predicate row templates for a Core Data entity. One of the properties is a date. Is there any way to change the NSDatePickerElementFlags for the NSDatePicker in the associated row template (to i

Re: NsPredicateEditor

2008-09-21 Thread Barry Wark
I think you can also call setCanRemoveAllRows:NO to prevent the editor from deleting the last (compound predicate) row. -barry On Sun, Sep 21, 2008 at 4:24 PM, Chris Idou <[EMAIL PROTECTED]> wrote: > > There's one or two demo apps on the apple site. I think it's called > PredicateEditorSample. I

Turn off saveDocumentWithDelegate:didSaveSelector:contextInfo: check for modified file in 10.5?

2008-05-19 Thread Barry Wark
I think I remember seeing a discussion of this issue before, but can't seem to find it in the archives/Google. Pointers greatly appreciated... I'm working on a NSPersistentDocument-based CoreData app that was developed on 10.4. We've since moved to the 10.5.sdk. The document in this app spawns a w

Re: Charting API?

2008-02-28 Thread Barry Wark
One other library worth keeping an eye on is QWT (http://qwt.sourceforge.net/). It's a very impressive 2D and 3D plotting library for Trolltech's qt. There is a qt for mac, but it's Carbon based so I don't think it's practical to use QWT with Cocoa, but Trolltech is investigating migrating Qt-Mac t

Re: Event Logging

2008-02-27 Thread Barry Wark
If you're using OS X 10.4 or later, you may want to check out the Apple System Logger facility (a great series of posts on ASL start at http://boredzo.org/blog/archives/2008-01-19/next-week-apple-system-logger). It's not too hard to write your own Objective-C/#define wrapper around ASL to get much

Re: Charting API? (Chris Schmitt)

2008-02-27 Thread Barry Wark
Just a little more info... I believe the DataGraph framework (http://www.visualdatatools.com/DataGraph/index.html) is licensable for use in commercial apps. We've had good success with it, though the API takes a bit of getting used to. You might also want to check out Drew McCormack's tutorials on