Re: Localization and plural rules revisited

2008-05-20 Thread Lachlan Deck
Hi there, On 21/05/2008, at 5:48 AM, Ricky Sharp wrote: On May 20, 2008, at 12:08 PM, Peter Edberg wrote: CLDR (Common Locale Data Repository) has some draft data on plural forms for various languages. See for sp

Newbie question about Database

2008-05-20 Thread Mathieu Spénard-Gingras
Hello All, I am learning Cocoa and would like to develop an application that can connect to a database, such as MySQL. However, I cannot find any tutorial, nor drivers in order to connect to a MySQL database, in such a way JDBC works with Java. How can one do so? I was also wondering if

Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
I've searched around and I'm confused about something. I've got a data model with a many-to-one relationship. How do I: 1. Given the object on the "one" side, how do I get its related object on the "many" side? 2. Given the object on the "many" side, how do I get all of the objects on the "o

Re: Newbie question about Database

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 7:29 PM, Mathieu Spénard-Gingras wrote: I am learning Cocoa and would like to develop an application that can connect to a database, such as MySQL. However, I cannot find any tutorial, nor drivers in order to connect to a MySQL database, in such a way JDBC works with J

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Andrew Merenbach
Hi, there, I apologize for not being able to offer an "Ah-ha!!!" sort of solution immediately, and also for this very long e-mail. I don't know if my suggestions will help, but they may at least lead to cleaner code, and may perhaps solve your problems. If I may... First, you may wish t

Re: Newbie question about Database

2008-05-20 Thread Andrew Farmer
On 20 May 08, at 18:29, Mathieu Spénard-Gingras wrote: I am learning Cocoa and would like to develop an application that can connect to a database, such as MySQL. However, I cannot find any tutorial, nor drivers in order to connect to a MySQL database, in such a way JDBC works with Java. H

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Steve Weller
However you slice it and whatever your personal experience, I believe that what we are experiencing with the docs are the early symptoms of massive scaling of the problem vs. insufficient scaling of the resources to tackle it. If anyone can fix this, it is Apple. If you care to invest the t

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 2:31 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I've got a data model with a many-to-one relationship. > [...] > I am not using NSManagedObject at all. > [...] > So how do I query for related objects without NSManagedObjects? Query what? What collection are you using t

NSButtonCell in NSOutlineView

2008-05-20 Thread David
I'm still trying to get a NSButtonCell in an NSOutlineView where the button cell is in the first column, is a checkbox style AND the title of the cell is set based on the row so that it shows data rather than needing a separate column for its title. I've rewritten it from using bindings to using a

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
> I apologize for not being able to offer an "Ah-ha!!!" sort of solution > immediately, and also for this very long e-mail. I don't know if my > suggestions will help, but they may at least lead to cleaner code, and may > perhaps solve your problems. If I may... Thanks for your suggestions, but

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 8:56 PM, Hamish Allan wrote: Query what? What collection are you using to store these objects? I'm using my own object caches. Nick Zitzmann ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
one more topic to comment: > Also: you call [progress setHidden:NO] every time that the timer fires. > This may prove inefficient later on, so I'd simply leave it unhidden. real code is a bit more complex: if user changed some parameters, I start the "big calculation" and show the progress bar. Am

Re: Attempting to create NSTableView with Single Header

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 12:11 AM, Brent Fulgham <[EMAIL PROTECTED]> wrote: > | My single column header | > |Label 1 | Value 1| > |Label 2 | Value 2| > Does anyone have any ideas for how to accomplish this? How about using a single column, with a data cell that d

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:16 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I'm using my own object caches. So can you not iterate through them, checking for equality to an object on the "one" side or on the "many" side? Hamish ___ Cocoa-dev mailing l

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:24 PM, Hamish Allan wrote: So can you not iterate through them, checking for equality to an object on the "one" side or on the "many" side? That involves a linear search, which is too slow with thousands of records. SQLite should be faster than that. Nick Zitzmann <

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:31 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > That involves a linear search, which is too slow with thousands of records. > SQLite should be faster than that. But if you're using your own object caches, and not using NSManagedObject, in what way are you using Core Da

Re: NSTableView and CoreAnimation

2008-05-20 Thread Jens Alfke
On 20 May '08, at 10:06 AM, Yann Bizeul wrote: As you can see, move steps of the NSTableView are persistent and this is really visible when the animation is running. I haven't seen this exactly, but I've seen other glitches in regular AppKit views when they're embedded in a superview that

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Nick Zitzmann
On May 20, 2008, at 9:36 PM, Hamish Allan wrote: But if you're using your own object caches, and not using NSManagedObject, in what way are you using Core Data? I'm getting the attributes from the records in the database using NSManagedObjectContext and NSFetchRequest and installing them i

Re: Newbie question about Database

2008-05-20 Thread Jens Alfke
On 20 May '08, at 6:29 PM, Mathieu Spénard-Gingras wrote: I was also wondering if storing data to a database is a good design pattern for Cocoa, since Apple provides something I haven't had time to look at yet: Core Data. I am simply developing a small project that will run locally on my

Re: Fetching related objects in CoreData without NSManagedObject

2008-05-20 Thread Hamish Allan
On Wed, May 21, 2008 at 4:44 AM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: > I'm getting the attributes from the records in the database using > NSManagedObjectContext and NSFetchRequest and installing them into my own > model objects. If you don't throw away the NSManagedObjects, you can use them

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Jens Alfke
On 20 May '08, at 2:30 PM, Vitaly Ovchinnikov wrote: Yes, that's it. But I can reproduce it at every run. Just Command+R at XCode at here it is. I can't reproduce it at all on 10.5.2. I've tried launching in Xcode and from the Finder, and being careful not to click/type/move the mouse aft

Re: Problem with updating NSProgressIndicator

2008-05-20 Thread Vitaly Ovchinnikov
>> Do I need to report this to Apple? Or what? > > Not unless you can reproduce it on 10.5 somehow. The only thing Apple would > fix in 10.4 nowadays is some kind of critical security bug or catastrophic > system error. Well, actually I already submitted this problem to apple. Maybe they'll take a

Printing NSGradient / CTGradient with alpha

2008-05-20 Thread Matthew Tonkin
Hi All, I'm trying to print a NSGradient or CTGradient that comprises two colors with alpha. It draws fine on screen, and draws fine in the print panel preview, but when I create a PDF or print it, the alpha is not respected at all. Here is my drawing code: - (void)drawRect:(NSRect)rect {

Re: Printing NSGradient / CTGradient with alpha

2008-05-20 Thread Andrew Merenbach
Hi, Matt, Check out these posts -- it appears that you may not actually be doing anything wrong after all: and this thread:

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Jeff LaMarche
This is really a fascinating discussion and, unfortunately, a time consuming one =) I can't help but feel that we have two identifiable camps forming, and I'm not sure I like that. Though a range of opinions have been stated, it seems that most of us can be readily identified as being on on

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Peter Duniho
Date: Wed, 21 May 2008 08:33:40 +0800 From: "Michael Ash" <[EMAIL PROTECTED]> On Tue, May 20, 2008 at 4:07 PM, Peter Duniho <[EMAIL PROTECTED]> wrote: But personally, it makes me nervous to have a language that allows the implementation of a class to change according to other code not relat

Re: Attempting to create NSTableView with Single Header

2008-05-20 Thread Brent Fulgham
On May 20, 2008, at 8:19 PM, Hamish Allan wrote: On Wed, May 21, 2008 at 12:11 AM, Brent Fulgham <[EMAIL PROTECTED]> wrote: | My single column header | |Label 1 | Value 1| |Label 2 | Value 2| Does anyone have any ideas for how to accomplish this? How a

Re: Attempting to create NSTableView with Single Header

2008-05-20 Thread John Terranova
3 steps to closely approximate what you want. 1) In IB, turn off column headers for the table. 2) Add this delegate method to the delegate object for the table: - (BOOL)tableView:(NSTableView *)tableView isGroupRow:(NSInteger)row { return row == 0; // the first row of the table will be treated

Re: Cocoa et al as HCI usability problem

2008-05-20 Thread Scott Anguish
On May 20, 2008, at 10:50 PM, Steve Weller wrote: However you slice it and whatever your personal experience, I believe that what we are experiencing with the docs are the early symptoms of massive scaling of the problem vs. insufficient scaling of the resources to tackle it. If anyone can

<    1   2