Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
the root of the problem is in my programmatic setup code. But where? I've been hunting for a - setEditable:YES method somewhere that I need to call, but I haven't found it... Any ideas? Thanks! Ben Haller Stick Software ___ Cocoa-dev mailing

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
On 1-Nov-09, at 12:42 PM, Ben Haller wrote: Hi all. I've got an NSTableView that I'd like to be editable. Even if I return YES from -tableView:shouldSelectRow: and YES from tableView:shouldEditTableColumn:row:, however, editing does not actually commence. The row selects, and I've

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
on my tableview. I double-click on a cell, and nothing whatsoever happens. Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Editing in a tableview without selecting

2009-11-01 Thread Ben Haller
On 1-Nov-09, at 6:01 PM, Graham Cox wrote: On 02/11/2009, at 4:42 AM, Ben Haller wrote: But where? I've been hunting for a -setEditable:YES method somewhere that I need to call, but I haven't found it... Hi Ben, Have you tried -setEditable:YES on the textfield cell you're using

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread Ben Haller
don't know if there's a good reason for that behavior or not. :- Apart from that issue, it worked quite nicely. Thanks for the tip, Sean. Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

re: EXC_BAD_ACCESS when migrating a store, but only sometimes...

2009-10-29 Thread Ben Trumbull
to construct the NSMigrationManager. That should work around the one known GC issue here. If you're not using GC, than try breaking out Instruments' ObjectAlloc with NSZombie detection. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

re: Could not merge data-error on save in a single moc app

2009-10-29 Thread Ben Trumbull
around, and then ask them for their MOC. - Ben ___ 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.com Help/Unsubscribe

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-29 Thread Ben Trumbull
help narrow down the possibilities. Thanks Melissa and Ben for your replies! I have been working on this issue for days now and am getting increasingly confused. :) My coworker found a way to create a document (in 10.6.1) with almost the same problem as originally described (it complains

re: Core Data: Undoing Cut-Paste, Drag-Drop between documents

2009-10-27 Thread Ben Trumbull
couldn't move things between documents without borking undo. The behavior you describe is more commonly associated with non-document apps like iCal or Address Book. They use a single undo manager for the user edits. - Ben ___ Cocoa-dev mailing list

Re: How to run a panel that customizes a new NSDocument

2009-10-22 Thread Ben Haller
, thank you for your help. Let's move on. Ben Haller Stick Software ___ 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.com

re: Search on Core data Table issue?

2009-10-22 Thread Ben Trumbull
it has a high fixed cost (like ~2ms on a desktop). You'll want to balance the two. You might start out with a threshold of 100 and tune from there. Thanks in advance and sorry if this is a dumb question. It's not. - Ben ___ Cocoa-dev mailing list

re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-22 Thread Ben Trumbull
deleted, or the object in a relationship has a temporary objectID but is not marked inserted. Using refreshObject:mergeChanges:NO on an object with pending changes can do some of that, as can assigning a deleted object to new relationships after delete propagation has run. - Ben

Re: How to run a panel that customizes a new NSDocument

2009-10-21 Thread Ben Haller
On 21-Oct-09, at 12:57 AM, Graham Cox wrote: On 21/10/2009, at 3:43 PM, Ben Haller wrote: There must be a good, clean way to do this. Anyone? Well, the expected way is to have different types for your documents. You can still map them all to the same class, and discriminate

Re: How to run a panel that customizes a new NSDocument

2009-10-21 Thread Ben Haller
On 21-Oct-09, at 6:55 PM, Ben Haller wrote: OK, I've switched over to an NSDocumentController and using different types for my different models. That turned out to be a forced move, because NSApplication's delegate method - applicationOpenUntitledFile: does not get called when the user

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Ben Haller
On 20-Oct-09, at 6:54 AM, Uli Kusterer wrote: On 19.10.2009, at 23:58, Ben Haller wrote: On 19-Oct-09, at 5:27 PM, Dave Keck wrote: Would NSView's -getRectsBeingDrawn:count: help? Well, I'm already using it in my own code where appropriate. (Or actually I'm using -needsToDrawRect

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Ben Haller
On 20-Oct-09, at 6:59 AM, Uli Kusterer wrote: On 20.10.2009, at 03:02, Ben Haller wrote: As for NSTableView, it does appear to be doing minimal drawing. So I guess all the string-drawing overhead I see in Sampler is just from the single column that is updating, which is unfortunate since

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-20 Thread Ben Haller
On 20-Oct-09, at 8:15 AM, Graham Cox wrote: On 20/10/2009, at 11:03 PM, Ben Haller wrote: AFAIK even -[NSAttributedString drawWithRect:options:] doesn't let you draw a string centered or right-aligned in the rect, which seems like a big oversight. I've just logged 7318495

How to run a panel that customizes a new NSDocument

2009-10-20 Thread Ben Haller
to do this. Anyone? Ben Haller Stick Software ___ 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.com Help/Unsubscribe

Dirty rects getting merged together makes for inefficient drawing

2009-10-19 Thread Ben Haller
this is a Cocoa or a CG question really, but since I'm using nothing but Cocoa calls at present, I figured I'd try this list first... Thanks! Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-19 Thread Ben Haller
areas for efficiency, for some reason; but that seems unlikely...) Ben Haller Stick Software ___ 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

Re: Why does my font come out looking fuzzy?

2009-10-19 Thread Ben Haller
. Works great. Thanks to the posters, though; CALayer and related concepts are quite new to me, so it is good to develop some mental context surrounding them! Ben Haller Stick Software On 19-Oct-09, at 6:24 PM, Dalmazio Brisinda wrote: Kyle's explanation #1 was spot on for my application. I

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-19 Thread Ben Haller
On 19-Oct-09, at 5:58 PM, Greg Guerin wrote: Ben Haller wrote: 1. Superview that does no drawing and is not opaque A. Subview #1: a tableview that is opaque B. Subview #2: a graph view that is opaque C. Subview #3: another graph view that is opaque Obvious

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-19 Thread Ben Haller
On 19-Oct-09, at 6:53 PM, Andy Lee wrote: On Monday, October 19, 2009, at 05:58PM, Ben Haller bhcocoa...@sticksoftware.com wrote: I think the problem is deeper (based upon what flashes under Quartz Debug): I think the dirty rects are actually getting consolidated such that NSTableView

Re: Dirty rects getting merged together makes for inefficient drawing

2009-10-19 Thread Ben Haller
that's what you're referring to. AppKiDo (which I still love :-) doesn't find any APIs with coalesce in their name that are drawing-related. Can you give me a pointer? Thanks! Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev

Re: Why does my font come out looking fuzzy?

2009-10-18 Thread Ben Haller
On Oct 17, 2009, at 7:46 PM, Ben Haller wrote: Copied the TrueType font from Instruments into my project, added the necessary key to my Info.plist, set the font using [NSFont fontWithName:...], and hey presto, there the font is in my app. Only... it doesn't look as nice. It's less

Why does my font come out looking fuzzy?

2009-10-17 Thread Ben Haller
I'm surprised there's a difference. Anybody know what's going on? I am now considering taking little screenshots of each digit and rolling my own pseudo-font using image blits. Please save me from that fate. Ben Haller Stick Software

Re: odd behavior with NSError?

2009-10-16 Thread Ben Trumbull
the merciless http://llvm.org/img/DragonFull.png - Ben ___ 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.com Help

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Ben Haller
On 16-Oct-09, at 3:04 PM, Alastair Houghton wrote: On 16 Oct 2009, at 03:54, Andrew Farmer wrote: On 15 Oct 2009, at 13:34, Ben Haller wrote: Hi all. I need a good Obj-C framework for sending email. I used to use the Message.framework associated with Apple's Mail, but they killed

A good Obc-C framework for sending email?

2009-10-15 Thread Ben Haller
to supply crash logs. :- Thanks! Ben Haller Stick Software ___ 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.com Help

Re: A good Obc-C framework for sending email?

2009-10-15 Thread Ben Haller
On 15-Oct-09, at 4:57 PM, Bryan Matteson wrote: Perhaps EDMessage? http://www.mulle-kybernetik.com/software/EDFrameworks/ EDMessage looks good, thanks! Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

GC crash due to being naughty

2009-10-15 Thread Ben Haller
? Sorry for the long email. Comments? Ben Haller Stick Software ___ 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.com

Re: GC crash due to being naughty

2009-10-15 Thread Ben Haller
repeated representation would use an unacceptable amount of memory. So I don't think it applies to my problem. Thanks though! Ben Haller Stick Software On 15-Oct-09, at 7:14 PM, Oftenwrong Soong wrote: Hi Ben, Have you considered the so-called Flyweight design pattern

Re: GC crash due to being naughty

2009-10-15 Thread Ben Haller
of something like NSMutableArray. Ought to be possible, right? So how do I manage this write barrier business to make it work properly? Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: GC crash due to being naughty

2009-10-15 Thread Ben Haller
want; why is auto_zone_root_write_barrier() getting into the middle of my assignment loop in the first place? Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: GC crash due to being naughty

2009-10-15 Thread Ben Haller
On 15-Oct-09, at 8:10 PM, Oftenwrong Soong wrote: Hi Ben, You say the crash occurs in this line: individuals[individualCount++] = individualsForPop[i]; The problem may be in the post-increment (individualCount++). IIRC, there is no agreed-upon compiler standard as to whether the post

Re: GC crash due to being naughty

2009-10-15 Thread Ben Haller
me to switch my collection class over to strong references. That's progress. Thanks to everybody for their help! Ben Haller Stick Software ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

re: Default Core Data errors

2009-10-14 Thread Ben Trumbull
also return errors. When you get an NSError, you'll want to also log its userInfo dictionary. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

re: CoreData could not fulfill a fault after Save As

2009-10-14 Thread Ben Trumbull
10.6.0 or 10.6.1, please file a bug. - Ben ___ 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.com Help/Unsubscribe

Re: Default Core Data errors

2009-10-14 Thread Ben Trumbull
in NSPersistentDocument.h particularly configurePersistentStoreCoordinatorForURL and readFromURL, and just call super. But look at the BOOL result and if NO, the NSError. You can also grab the error in the debugger as others have suggested. - Ben

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-13 Thread Ben Haller
On 12-Oct-09, at 8:14 PM, Charles Srstka wrote: On Oct 11, 2009, at 9:46 PM, Ben Haller wrote: Most of the bugs I had to fix were related to either using long instead of int, or needing a -finalize method. You should actually probably be using NSInteger instead of either of those

Re: More Core Data Questions

2009-10-13 Thread Ben Trumbull
relationship in -awakeFromFetch - Ben ___ 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.com Help/Unsubscribe/Update

Saving for iPhone - Can core data handle this?

2009-10-12 Thread Ben Trumbull
, and have a rough idea on how I might accomplish all of this, but I wanted to see if someone had experience with this and could keep me from spending time going down the wrong path if it isn't going to work. So, do you think core data can handle this? What approach (roughly) should I use? - Ben

Re: CoreData Bug? (SQLite vs XML) + isolated reproducible case

2009-10-12 Thread Ben Trumbull
be in multiple destinations for a specific relationship) - Ben ___ 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.com

re: More Core Data Questions

2009-10-12 Thread Ben Trumbull
issues you have yet to measure ? I wouldn't add multiple stores to work around a performance issue before actually trying it. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: More Core Data Questions

2009-10-12 Thread Ben Trumbull
, and tuning your app performance fits within your schedule requirements, and whether implementing, debugging, and tuning all this yourself will really take any less time. You might consider mocking up a Core Data version over a few days and seeing how far you get. - Ben

Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-11 Thread Ben Haller
than a little inconvenient. Thanks for any advice! Ben Haller Stick Software ___ 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

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-11 Thread Ben Haller
a flag specifically for GC I'd rather use that... Thanks! Ben Haller Stick Software ___ 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

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 3:52 PM, Kyle Sluder wrote: On Oct 11, 2009, at 12:44 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: OK, makes sense. My only question: what's the best way to switch at compile time based on whether GC is enabled for the build? I.e. what do I #if or #ifdef? I

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 4:11 PM, Kyle Sluder wrote: On Oct 11, 2009, at 1:06 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Yes, but my code also needs to compile as GC-unsupported against the 10.4 SDK, where any GC-specific calls that I might need to make will not compile. Am I missing

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-11 Thread Ben Haller
On 11-Oct-09, at 5:28 PM, Clark Cox wrote: On Sun, Oct 11, 2009 at 1:55 PM, Ben Haller bhcocoa...@sticksoftware.com wrote: Well, I imagine I'm going to need to use *something* GC-specific -- strong/weak declarations, Not likely. finalize methods, whatever. Implementing finalize methods

re: [iPhone} Exception After Creating First Object

2009-10-10 Thread Ben Trumbull
might try searching them, or looking at https://devforums.apple.com/message/100783#100783 - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: CoreData async fetch request

2009-10-08 Thread Ben Trumbull
than using SQLite directly? Doing this in SQLite directly will also be 100x faster than what you're doing now. Regardless of whether or not you decide to use Core Data, this would be better. - Ben ___ Cocoa-dev mailing list (Cocoa-dev

Re: Core Data KVO with To-Many Relationships

2009-10-08 Thread Ben Trumbull
object. - Ben ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: CoreData async fetch request

2009-10-08 Thread Ben Trumbull
. There are other possible issues in play, but you said the result set is small, so they seem unlikely. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: CoreData async fetch request

2009-10-07 Thread Ben Trumbull
an excellent feature request. Please file it with bugreport.apple.com But if you take my advice and make the query run in 1.8s instead of 180s, how important is this to you ? - Ben On Oct 6, 2009, at 4:08 AM, Ben Trumbull wrote: On Oct 5, 2009, at 7:00 PM, enki1...@gmail.com wrote: I am

Re: CoreData async fetch request

2009-10-06 Thread Ben Trumbull
the same, or be stuck with ASCII. Regardless, you'll need to make your searches eligible for an index. The DerivedProperty example shows how to do that. - Ben Thanks On Oct 5, 2009 7:14pm, Ben Trumbull trumb...@apple.com wrote: Is there a way to do an asynchronous fetch request

Re: Address Book-style editing

2009-10-05 Thread Ben Lachman
the ruler based on editing mode. Hope this helps, -Ben On Oct 1, 2009, at 1:21 PM, Brad Gibbs wrote: Hi, I'm trying to re-create Address Book's editing style - if a user pushes a button labeled Edit, subsequent clicks on a label bring up what looks like a separate view for the new information

re: CoreData async fetch request

2009-10-05 Thread Ben Trumbull
, and - setIncludesPropertyValues: to NO to effectively create your own cursors if you prefer. - Ben ___ 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

re: whether to use core data...

2009-10-05 Thread Ben Trumbull
experiment with Core Data. - Ben ___ 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.com Help/Unsubscribe/Update your

Re: Strange Core Data save behaviour (required relationship nil... when it is set the line before saving)

2009-09-30 Thread Ben Trumbull
a MOC ? Because threads with their own MOCs can make their own changes and own saves simultaneously. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Strange Core Data save behaviour (required relationship nil... when it is set the line before saving)

2009-09-30 Thread Ben Trumbull
time on this or, judging by complaints, something more important ? cocoa-dev is not a bug reporting forum. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

re: Strange Core Data save behaviour (required relationship nil... when it is set the line before saving)

2009-09-29 Thread Ben Trumbull
? - Ben ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: Strange Core Data save behaviour (required relationship nil... when it is set the line before saving)

2009-09-29 Thread Ben Trumbull
On Sep 29, 2009, at 8:22 PM, Luke Evans wrote: Hello Ben. What happens if you add a call to -processPendingChanges in between #2 and #3 ? ... well then everything works wonderfully (oh joy!!) :-) OK. I need to get a proper mental picture of why this is needed in this case. I guess I

re: Snow Leopard, core data, read only and multiple threads

2009-09-27 Thread Ben Trumbull
- threading. You sure you're not saving a MOC ? - Ben ___ 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.com Help

re: Re: [__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!

2009-09-25 Thread Ben Trumbull
the stack is not pretty. - Ben ___ 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.com Help/Unsubscribe/Update your

re: Core Data: relationship 'too large' when saving

2009-09-24 Thread Ben Trumbull
for this relationship ? 2) can someone point me to relevant documentation? You sure it's not NSValidationNumberTooLargeError for one of the numbers being outside the range you specified acceptable in the model ? - Ben ___ Cocoa-dev mailing list (Cocoa-dev

Re: Core Data memory not freed after reset

2009-09-22 Thread Ben Trumbull
On Sep 22, 2009, at 8:54 AM, Sean McBride wrote: On 9/21/09 4:21 PM, Ben Trumbull said: If you're using an NSArrayController in Entity mode, you can turn on Use Lazy Fetching. You'll want to disable auto-rearrange content. Ben, May I ask, why turn off 'auto-rearrange content

re: Core Data memory not freed after reset

2009-09-21 Thread Ben Trumbull
~16MB of RAM. - Ben ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: Core Data memory not freed after reset

2009-09-21 Thread Ben Trumbull
. - Ben ___ 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.com Help/Unsubscribe/Update your Subscription: http

re: Core Data threading fun

2009-09-21 Thread Ben Trumbull
model. State may change, but only because you did something to ask us to do that. Like refetch the objects, use a staleness interval, or call -mergeChanges... - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: How to create subentity object inheriting from superentity object in core data

2009-09-17 Thread Ben Trumbull
Objective-C class. If the Truck entity is a subentity of Auto, then it may reuse the AutoClass, or a TruckClass which must be a subclass of the AutoClass. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

re: Core Data: strange keypath problem

2009-09-17 Thread Ben Trumbull
a *persistent* store to query or sort on *transient* data. - Ben ___ 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.com

Re: Custom Fonts in UI Webview

2009-09-16 Thread Ben Lachman
to include custom fonts in the application bundle and then access them for use in a UIWebView. Best, -Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev

re: How to create subentity object inheriting from superentity object in core data

2009-09-16 Thread Ben Trumbull
. - Ben ___ 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.com Help/Unsubscribe/Update your Subscription: http

Re: How to create subentity object inheriting from superentity object in core data

2009-09-16 Thread Ben Trumbull
definitions. Even if you need to do all this programmatically, I'd recommend to play with the modeling tools more to see what things are supposed to look like. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Custom Fonts in UI Webview

2009-09-15 Thread Ben Lachman
On Sep 14, 2009, at 6:08 PM, Jens Alfke wrote: On Sep 14, 2009, at 2:43 PM, Ben Lachman wrote: I was looking at the NYTimes iPhone app today and noticing that it looks like they're using a UIWebView with a custom font (not sure what font though, anyone know?). I did some digging on how

Custom Fonts in UI Webview

2009-09-14 Thread Ben Lachman
deprecated on MobileSafari. I saw a lot of references to using Cufón (or similar), however that doesn't allow for copying or selection and the NYTimes app does. anyone know of a way to use a real custom font face in a UIWebView? Thanks, -Ben -- Ben Lachman Acacia Tree Software http

re: CoreData multiple contexts and threads

2009-09-13 Thread Ben Trumbull
saved MO with - objectWithID: on your MOC. If you have a very large number of messages, you may not wish to model the to-many on Parent at all. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

re: CoreData Bug? (SQLite vs XML)

2009-09-13 Thread Ben Trumbull
this in a new sample project ? - Ben ___ 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.com Help/Unsubscribe/Update

re: Core Data Manual Migration

2009-09-11 Thread Ben Trumbull
; } There should be more in the userInfo dictionary explaining what's going on. If you can reproduce it in a new test project with your models mapping models, then please file a bug with the project source zipped up at bugreport.apple.com and we'll look at it. - Ben

re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
is a database is like saying your compiler is an assembler. Well, the compiler suite uses an assembler, sure, and they both output object code in the end, but that does not mean the best way to use your compiler is to write in assembly. - Ben ___ Cocoa

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
care ? No. App developers get paid for novel functionality that addresses a real customer need with good UI. - Ben Here's a more traditional reply: - Full KVC, KVO support out of box - Relationship maintenance (inverses, delete propagation) - Change tracking - Sophisticated SQL compilation

Re: Is Core Data appropriate to my task?

2009-09-10 Thread Ben Trumbull
Before anything else, let me say thank you for a clear, concise, and very helpful set of answers to my questions; I was expecting rather more of a struggle for understanding :). my pleasure. On Sep 10, 2009, at 5:04 PM, Ben Trumbull wrote: The inverse relationship from Planet to Employee

Re: Core Data fetch with to-many relationship

2009-09-09 Thread Ben Trumbull
has a bunch of others, but that's irrelevant to whether or not it matches the predicate. You seem to be thinking of this predicate @ALL books.name like 'myPrefix*' for which we don't currently generate SQL. - Ben ___ Cocoa-dev mailing list

Re: KVO can be unsafe in -init?

2009-09-09 Thread Ben Trumbull
assumptions. This falls under the hack category, and is not a pattern you want to replicate widely. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Garbage collection and about windows

2009-09-08 Thread Ben Haller
zero and I have to set up a way for the windowcontroller to tell the app delegate that it's no longer needed. There must be a better pattern; I imagine I'm just not used to thinking in garbage-collection terms yet. So what's the right way to do this? Thanks... Ben Haller Stick Software

Re: watch changes to any properties on an object

2009-09-03 Thread Ben Trumbull
- Ben Ok, thats what i thought. But just for implementation ideas, how does CoreData know when one of it's @dynamic properties is changed? It must set some sort of flag somewhere in order to know what to write out when it needs to save. How does it handle that? thx AC On Sep 3, 2009, at 12:27 PM

Re: Core Data dog-slow when using first time after boot

2009-09-03 Thread Ben Trumbull
of the predicate in the fetch request itself. Walking through the predicate and gathering up the keypaths used is very tedious, but not especially difficult, if you find yourself wanting a complete solution. - Ben ___ Cocoa-dev mailing list (Cocoa-dev

Re: watch changes to any properties on an object

2009-09-03 Thread Ben Trumbull
to create a bunch of managed objects to hold some properties. - Ben ___ 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

re: Correct way to have nil undo manager in Core Data document?

2009-08-29 Thread Ben Trumbull
. */ - (void)setHasUndoManager:(BOOL)hasUndoManager; - (BOOL)hasUndoManager; - Ben ___ 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

re: Core Data Predicate Builder - comparing dates

2009-08-29 Thread Ben Trumbull
predicateWithFormat:@dateModified dateCreated] - Ben ___ 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.com Help

re: Curious about $SUBST_VARS within a SUBQUERY of a fetch request template

2009-08-29 Thread Ben Trumbull
disallowed, or a bug, or just developer-error somehow? What your code look like for the substitution variables dictionary ? - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

re: core-data app design question

2009-08-29 Thread Ben Trumbull
. Encoding your data this way is pushing the boundaries of violating MVC patterns by archiving UI information (NSTextView drawing information) into your model (database). That obviously doesn't work if the platform doesn't support NSTextView. - Ben

re: Core Data observer exception in 10.6

2009-08-29 Thread Ben Trumbull
Bindings bug. If you could create a new sample project with your NIB and your model and reproduce this, and then attach it to a bug report, that would be extremely helpful. Thanks, - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

re: CoreData: Using to-may relationships in fetch request predicates

2009-08-29 Thread Ben Trumbull
? You'll need to use a SUBQUERY predicate instead of an ANY/operator. Probably easiest to do SUBQUERY(..)@count 0 Please file a bug. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Auto complete accepts on space, any way to change?

2009-08-28 Thread Ben Lachman
- textView:completionsForPartialWordRange:indexOfSelectedItem:. I thought to override keyDown: but the problem is that the field editor is eating keystrokes. Thanks, -Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile

Re: Core Data dog-slow when using first time after boot

2009-08-25 Thread Ben Trumbull
On Aug 25, 2009, at 7:19 AM, Ruotger Skupin wrote: Am 24.08.2009 um 23:13 schrieb Ben Trumbull: When I use setRelationshipKeyPathsForPrefetching the fetch throws: -[NSSQLAttribute inverseRelationship]: unrecognized selector sent to instance 0x10ee150 Can you provide the entire stack

Re: Core Data dog-slow when using first time after boot

2009-08-24 Thread Ben Trumbull
On Aug 24, 2009, at 3:20 AM, Ruotger Skupin wrote: Am 20.08.2009 um 22:28 schrieb Ben Trumbull: setRelationshipKeyPathsForPrefetching When I use setRelationshipKeyPathsForPrefetching the fetch throws: -[NSSQLAttribute inverseRelationship]: unrecognized selector sent to instance

re: Using Core Data NSManagedObject subclasses outside of a managed object context

2009-08-24 Thread Ben Trumbull
' objects from that without having to persist every story I fetch. Regardless of approach, you'll need to copy the transient objects into new persistent objects to individually change their nature from transient to normal managed objects. - Ben

Re: When do I need to override hash?

2009-08-21 Thread Ben Trumbull
expecting, and there's no future-proof way you can cut corners. There really isn't any point in cutting corners here. If you need to do something unusual, you can use a CFDictionary with custom callbacks. - Ben ___ Cocoa-dev mailing list

<    1   2   3   4   5   6   7   >