Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread claw
hi, i want you to propose just an idea , a remark, on apple documentation is said The NSFetchRequest class is used to describe search criteria used to retrieve data from a persistent store. implicitely you must record all of them and update them sometimes in your idea there is a l

Re: CoreData Migration Problems

2011-02-10 Thread Jerry Krinock
On 2011 Feb 10, at 18:37, Gordon Apple wrote: > The error handles gives 10 console messages, "The operation couldn’t be > completed", which is the exact number of records in the test database. So > something is definitely going awry in the mapping. Log these errors' -userInfo. In particular, l

Re: CoreData Migration Problems

2011-02-10 Thread Gordon Apple
So far, manual migration has the same result. "migrateStoreFromURL" returns "NO". I even tried deleting a new entity and one attribute from the mapping model, both of which are not involved in the migration. All the others are straightforward. To rule out some other problems, I also set up a ro

Invitation to connect on LinkedIn

2011-02-10 Thread Xianyu Ge via LinkedIn
LinkedIn Xianyu Ge requested to add you as a connection on LinkedIn: -- Cameron, I'd like to add you to my professional network on LinkedIn. - Xianyu Accept invitation from Xianyu Ge http://www.linkedin.com/e/-bq75p7-gk0g92ms-3m/AdB-vBGUaPDD8C

Re: Strange problem drawing a custom grid in NSTableView

2011-02-10 Thread Eric Gorr
Unfortunately, no. - (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; } And, I just checked to see what would happen if I used the default column line drawing code instead of my custom code and I see the same problem. It appears that there is a general problem with drawing

Re: Strange problem drawing a custom grid in NSTableView

2011-02-10 Thread Corbin Dunn
override -drawRect: in NSTableView; just call [super drawRect:] and don't do anything else. Does that fix it? corbin On Feb 10, 2011, at 2:51 PM, Eric Gorr wrote: > I've got a sample project demonstrating the problem: > > http://ericgorr.net/cocoadev/TableViewGridDrawing.zip > > I've included

Strange problem drawing a custom grid in NSTableView

2011-02-10 Thread Eric Gorr
I've got a sample project demonstrating the problem: http://ericgorr.net/cocoadev/TableViewGridDrawing.zip I've included a screen recording showing the problem as well. Basically, I need to drawn some vertical column line in a column. Since, in the real case, these lines would be drawn for only

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
On Feb 10, 2011, at 7:28 PM, Quincey Morris wrote: > On Feb 10, 2011, at 12:59, WT wrote: > >> So, why doesn't it sort them correctly when it's accessing the "indexOrName" >> stored value? > > You *cannot* have an attribute that's both a derived property and a stored > property at the same tim

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
(Apologies if this message reaches you in duplicate. The first time I sent it, it was flagged as 10 KB too large.) I spoke too soon... Forcing -indexOrName to be invoked at entity creation time ensures that the corresponding attribute has the correct value but the fetched results controller s

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread Quincey Morris
On Feb 10, 2011, at 12:59, WT wrote: > So, why doesn't it sort them correctly when it's accessing the "indexOrName" > stored value? You *cannot* have an attribute that's both a derived property and a stored property at the same time. The two things are mutually contradictory. What you've actua

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
Your statement that I need to get the values of "indexOrName" stored in the store led me to write the odd-looking line of code below cdCountry.indexOrName = cdCountry.indexOrName; when the entities are created and it fixes the problem in the test project. I'm now more convinced than ever that C

Re: NSSearchfield help

2011-02-10 Thread Lorenzo Thurman
On Feb 10, 2011, at 8:55 AM, Dave Reed wrote: > > On Feb 9, 2011, at 9:44 PM, lorenzo7...@gmail.com wrote: > >> I have a NSTableView populated by an NSArrayController. Above the table, I >> have an NSToolbar, to which I would like add the ability to search. I have >> found a couple of exa

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
On Feb 10, 2011, at 3:54 PM, Quincey Morris wrote: > Perhaps you're assuming that Core Data will internally call the above getter > to figure out what to put into the store. It doesn't work that way. Most > likely your store contains nil values for the "indexOrName" attribute. (I'm > assuming y

Screensaver on multiple monitors, asl_log mystery solved, I think ...

2011-02-10 Thread Gabriel Zachmann
Well, regarding the asl_log mystery, I suppose I should have read the man page more carefully ... (shame on me) I think, the solution is just that I need to create a client handle *per thread*, like this: log_client_ = asl_open( "MyApp", NULL, ASL_OPT_NO_DELAY); ... asl_log( log_client_, log_ms

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread Quincey Morris
On Feb 10, 2011, at 07:19, WT wrote: > The test project's core data model has a single entity, "CountryCD", with the > attributes "name", "index", "selected" (representing a boolean), and a > transformable attribute "indexOrName" which returns the entity's index if > it's selected or its name i

Screensaver on multiple monitors

2011-02-10 Thread Gabriel Zachmann
I am developing a screensaver that is (should) be able to run simultaneously on multiple monitors (= screens) attached to the same machine (not mirrored). It seems to be doing fairly well so far, except for two glitches, which is why I am asking here. 1. Occasionally, my screensavers output some

Re: [iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
The example of countries is just that, an example. The actual app is about something else. Also, the color of the text is not a model property - the selected status is. I think you didn't quite understand what the problem I'm having is. The problem is that NSFetchedResultsController is ignoring

Re: Abstract Text Example and Question

2011-02-10 Thread Brad Stone
Matt and Graham - I knew there was a better approach. I'll look into the things you suggest. On Feb 10, 2011, at 10:19 AM, Matt Neuburg wrote: > On Wed, 9 Feb 2011 22:04:58 -0500, Brad Stone said: >> I made this code to remove any duplicate words from a large group of text. > >> if ([resultA

Re: Abstract Text Example and Question

2011-02-10 Thread Matt Neuburg
On Wed, 9 Feb 2011 22:04:58 -0500, Brad Stone said: >I made this code to remove any duplicate words from a large group of text. >if ([resultArray indexOfObject:s] == NSNotFound) There's the problem. Who knows how this is implemented? You could be searching the entire array one entry at a time

[iOS] Strange behavior of NSFetchedResultsController

2011-02-10 Thread WT
Hello list, a little while ago I posted a question regarding some strange behavior by an NSFetchedResultsController (under the same subject line as this message). Since then I've narrowed the problem down a bit more and now have a test project to show it. Here's what the goal is, in a nutshell

Re: NSSearchfield help

2011-02-10 Thread Dave Reed
On Feb 9, 2011, at 9:44 PM, lorenzo7...@gmail.com wrote: > I have a NSTableView populated by an NSArrayController. Above the table, I > have an NSToolbar, to which I would like add the ability to search. I have > found a couple of examples of implementing search using an NSSearchField, but > t

CocoaHeads-NYC meeting tonight

2011-02-10 Thread Andy Lee
And Bob will have some books to raffle off! --Andy Begin forwarded message: > From: Andy Lee > Date: February 8, 2011 11:56:53 AM EST > To: CocoaHeads-NYC > Subject: [CocoaHeads-NYC] meeting this Thursday (Feb 10) > Reply-To: cocoaheads-...@yahoogroups.com > > Bob Clair will talk about Bezier

Re: Advice for drawing complex, line-based designs

2011-02-10 Thread Matthias Arndt
Tom, > I'm working on a project where I'm reading in a file that contains a list of > coordinates that are used to define a stitch pattern for embroidery machines. Would you mind contacting me off-list? Maybe we can cooperate on some topics ... Mattes

Re: Cocoa Finder Hooks

2011-02-10 Thread Matthias Arndt
David, although it's nearly 3 months old, I just stumbled over your posting: > When a file is selected in Column View in the Finder a Preview and Meta Data > about the file display. Is there something ala Quicklook that allows me to > add meta data to the preview? Did you figure it out? I thi

Re: NSOutlineView + NSButtonCell weird bug

2011-02-10 Thread Mark Wright
Ah HA! This problem has bugged me for ages and I could never find it. I too worked around it with re-saves or forcing nib recompilation whenever one of them worked. I always blamed some obscure corruption in IB but since I'm stuck on 10.5 I assumed it was just something to live with. I

Re: NSScrollView, centering document view?

2011-02-10 Thread Daniel Vollmer
Hi, On 30 Jan 2011, at 06:38, Todd Heberlein wrote: > Is there an easy way to do this? Or should I make sure my document view is > always at least as large as the content view and then just center my drawing > inside my document view? Here's a sub-class of NSClipView that does that. I have to