Re: Authenticate Password.

2008-07-29 Thread Macarov Anatoli
My program requests user's password for further work. Tha's why I'd like to check password, if the user has entered it correctly. And for this I use Authorization Service. On Mon, Jul 28, 2008 at 7:24 AM, Macarov Anatoli <[EMAIL PROTECTED]> wrote: > With the help of this procedure I check wheth

Re: Storing values in dictionary with their address as the key

2008-07-29 Thread Stuart Rogers
If I wanted to store an object in a dictionary and set its key as the object's memory address - how would I go about doing this? I'm racking my brains trying to think of a good reason to do this and am drawing a blank. I can, however, think of myriad bad reasons. Agreed - I can't help

Re: Authenticate Password.

2008-07-29 Thread Phil
On Tue, Jul 29, 2008 at 7:31 PM, Macarov Anatoli <[EMAIL PROTECTED]> wrote: > My program requests user's password for further work. Tha's why I'd like to > check password, if the user has entered it correctly. And for this I use > Authorization Service. > What further work? If you're wanting to

[ANNOUNCE] CocoaHeads Frankfurt

2008-07-29 Thread Torsten Curdt
Just a reminder. Next Monday we will have the second CocoaHeads in Frankfurt. CocoaHeads Frankfurt, Monday, 04.08.2008 20:00 at Club Voltaire We are starting a little later at 8pm as requested. Please register if you plan to attend. More details at http://upcoming.yahoo.com/event/871648

Re: sorting two arrays

2008-07-29 Thread Steven Noyes
You might consider changing how you store data just a little bit. Instead of having two arrays, a single array with arrays as objects. For example, you currently have: Array 1 Array 2 - --- | | | | -

Re: Storing values in dictionary with their address as the key

2008-07-29 Thread Manfred Schwind
If I wanted to store an object in a dictionary and set its key as the object's memory address - how would I go about doing this? NSObject *myObject = [[NSObject alloc] init]; [dictionary setValue:myObject forKey:[NSString stringWithFormat:@"%x", &myObject]]; Just remove the "&" before myO

Re: [Newbie] Communication between two Views?

2008-07-29 Thread I. Savant
> I'm trying to avoid "who said what" discussions on this list these days ;) Though I see your emoticon, I don't really understand this statement - if there's confusion about a post, quoting is the easiest way to clear it up, which is why it's a regular practice in e-mail / mailing lists. > I m

Re: Storing values in dictionary with their address as the key

2008-07-29 Thread Nathan Vander Wilt
What about using CFDictionary ? You can create a dicitonary with a callback that support address (NULL for example). I'll echo this; it's a really handy technique that I use frequently (you can even use integers as keys!). WARNING: Just in case, there is a major warning here. You should a

NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Roland King
I started over a couple of weeks ago with the new Hillegass book, trying to make sure I understood things properly this time and of course I'm now stuck. I'm at the 'RaiseMan' chapter now. This is where Hillegass introduces a NSArrayController and its use with an NSTableView. Here are the

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Felix Franz
On 29.07.2008, at 18:01, Roland King wrote: I started over a couple of weeks ago with the new Hillegass book, trying to make sure I understood things properly this time and of course I'm now stuck. I'm at the 'RaiseMan' chapter now. This is where Hillegass introduces a NSArrayController

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread I. Savant
> 'Delete' however I don't understand. Hitting the button triggers the remove: > action in the NSArrayController which deletes the selected entry from the > NSMutableArray but ... how does it know which one to delete? I haven't told > the NSArrayController what NSTableView it's attached to, or if i

help about the flat-namespace?

2008-07-29 Thread Leopard x86
Hi everyone. I am going to use a foreign library named graphviz by AT&T research. There is example application written in Cocoa. I am very lucky to build the library from the source and installed the needed libraries and header files. But when I launched the application, the console dumped out

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Roland King
On Jul 30, 2008, at 12:28 AM, I. Savant wrote: 'Delete' however I don't understand. Hitting the button triggers the remove: action in the NSArrayController which deletes the selected entry from the NSMutableArray but ... how does it know which one to delete? I haven't told the NSArrayContr

Re: [Newbie] Communication between two Views?

2008-07-29 Thread Adam R. Maxwell
On Tuesday, July 29, 2008, at 08:35AM, "I. Savant" <[EMAIL PROTECTED]> wrote: >> I'm trying to avoid "who said what" discussions on this list these days ;) > > Though I see your emoticon, I don't really understand this statement >- if there's confusion about a post, quoting is the easiest way to

Odd error when opening a nib file

2008-07-29 Thread JArod Wen
Hi jedis, I met an odd error when opening a nib file, using the following code: -(void)loadGraphicsController{ if (graphicsController == NULL) { graphicsController = [[GraphicsController alloc] init]; if (![NSBundle loadNibNamed:@"GraphWindow" owner:graphicsController

Re: Odd error when opening a nib file

2008-07-29 Thread Kyle Sluder
On Tue, Jul 29, 2008 at 1:12 PM, JArod Wen <[EMAIL PROTECTED]> wrote: > Cannot create int from object of class > NSApplication Did you mistakenly create an NSApplication in the nib? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Odd error when opening a nib file

2008-07-29 Thread JArod Wen
The error has mysteriously gone after I deleted all the popup buttons and re-added them onto the interface again... The wildest reason I have on this odd error may be some improper configuration on the popup button. Thanks anyway to Kyle, since at first I thought the problem should be som

Re: global NSMutableDictionary

2008-07-29 Thread Bill Bumgarner
On Jul 29, 2008, at 10:57 AM, Nathaniel Gottlieb-Graham wrote: Why do externs seem to have to be NSStrings? Also, is this even the right way to go about having a read/write global NSMutableDictionary? If not, how would I do this? The variables cannot point to anything that isn't a constant

Re: Repositioning a content view w/in a window

2008-07-29 Thread Jonathan Hess
On Jul 28, 2008, at 3:29 PM, R.L. Grigg wrote: On Jul 26, 2008, at 3:15 AM, Michael Ash wrote: On Fri, Jul 25, 2008 at 11:08 PM, Henry McGilton (Starbase) <[EMAIL PROTECTED]> wrote: On Jul 25, 2008, at 6:50 PM, Michael Ash wrote: In fact I would go so far as to say that if you ever use -s

Re: global NSMutableDictionary

2008-07-29 Thread Devon Ferns
I think you probably want to use the singleton design pattern rather than that global variable. Devon. Nathaniel Gottlieb-Graham wrote: I am trying to implement a global variable that's an NSMutableDictionary. Up until now I've achieved this by making globalVariables.h and .m files to hold g

global NSMutableDictionary

2008-07-29 Thread Nathaniel Gottlieb-Graham
I am trying to implement a global variable that's an NSMutableDictionary. Up until now I've achieved this by making globalVariables.h and .m files to hold globals that are imported by all my classes. globalVariables defines externs, and I already have two extern NSStrings set up and worki

Re: global NSMutableDictionary

2008-07-29 Thread I. Savant
On Tue, Jul 29, 2008 at 1:57 PM, Nathaniel Gottlieb-Graham <[EMAIL PROTECTED]> wrote: > I am trying to implement a global variable that's an NSMutableDictionary. In addition to Bill's response, I'd like to take a different direction. :-) Why are you trying to implement this as a global? Typicall

Re: global NSMutableDictionary

2008-07-29 Thread Nathaniel Gottlieb-Graham
Holy moly, that's just what I needed. This dictionary in fact originated in the controller app delegate, and I had no idea you could reference things inside the app delegate like that! Thanks so much! On Jul 29, 2008, at 2:16 PM, I. Savant wrote: On Tue, Jul 29, 2008 at 1:57 PM, Nathanie

Where'd my debugging statements go?

2008-07-29 Thread Nathaniel Gottlieb-Graham
All of the sudden, Xcode (3.1) no longer logs any NSLog or printf statements to the console. I have no idea what caused this, since it just randomly started happening after a compile, and even log statements which are *obviously* reachable don't output anything at all! Help? Thanks, Nat

Re: [Newbie] Communication between two Views?

2008-07-29 Thread julius
On 29 Jul 2008, at 03:35, julius <[EMAIL PROTECTED]> wrote Subject: Re: [Newbie] Communication between two Views? To: "Thomas Wickl" <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com On 28 Jul 2008, at 16:39, "Thomas Wickl" <[EMAIL PROTECTED]> wrote Subject: [Newbie] Communication between two

getting the clicked-in view

2008-07-29 Thread James Maxwell
This is really silly, but how can I get a reference to the clicked-in view??? I don't have direct access to the event, but I can get it through NSApp. The problem is, there doesn't seem to be any method to just get a reference to the clicked view. This seems very strange to me, so I reall

Re: getting the clicked-in view

2008-07-29 Thread Andy Lee
Does NSView's -hitTest: method help? --Andy On Jul 29, 2008, at 3:56 PM, James Maxwell wrote: This is really silly, but how can I get a reference to the clicked- in view??? I don't have direct access to the event, but I can get it through NSApp. The problem is, there doesn't seem to be any

Re: bug in PhotoSearch

2008-07-29 Thread [EMAIL PROTECTED]
At 4:38 PM -0700 7/25/08, Corbin Dunn wrote: On Jul 25, 2008, at 3:52 PM, [EMAIL PROTECTED] wrote: also, is there a specific reason for caching the cell in iMouseCell? i've done away with the caching in my app (and thus also don't have to override preparedCellAtColumn:row:), and now all my pro

Re: getting the clicked-in view

2008-07-29 Thread James Maxwell
Okay, I found a way around the problem... But it might still be handy to know how to do this, at some point... On 29-Jul-08, at 12:56 PM, James Maxwell wrote: This is really silly, but how can I get a reference to the clicked- in view??? I don't have direct access to the event, but I can ge

Re: getting the clicked-in view

2008-07-29 Thread Gary L. Wade
How do you know you got a click in a view? In other words, at what stage are you in your application that you believe you got a click in a view? >Okay, I found a way around the problem... But it might still be handy >to know how to do this, at some point... > >On 29-Jul-08, at 12:56 PM, James

private methods and variables

2008-07-29 Thread Torsten Curdt
This question is NOT about private APIs from Apple but more about how to organize structure my own code. Especially for a framework I don't want to expose implementation details to the interface. So while I found the suggestion to use a special category like: @interface MyClass -(void) pu

Re: global NSMutableDictionary

2008-07-29 Thread Michael Ash
On Tue, Jul 29, 2008 at 2:04 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote: > On Jul 29, 2008, at 10:57 AM, Nathaniel Gottlieb-Graham wrote: >> >> Why do externs seem to have to be NSStrings? Also, is this even the right >> way to go about having a read/write global NSMutableDictionary? If not, ho

Re: private methods and variables

2008-07-29 Thread Bill Bumgarner
On Jul 29, 2008, at 2:02 PM, Torsten Curdt wrote: @interface MyClass -(void) publicMethod; @end @interface MyClass (Private) { int privateVariable; } -(void) privateMethod; @end I am not sure why that would be better than to just do @interface MyClass -(void) publicMethod; @end @imple

Re: Storing values in dictionary with their address as the key

2008-07-29 Thread Nathan Vander Wilt
On Jul 29, 2008, at 8:58 AM, Nathan Vander Wilt wrote: Right, -[NSDictionary setObject:forKey:] on a CFDictionary created with a custom retain callback will invoke copyWithZone: before calling your retain callback. Apple claims this is not a bug. Getting/removing values with objectForKey:/

Re: bug in PhotoSearch

2008-07-29 Thread Corbin Dunn
howdy ken, it seems to me that all drawing of table cells will go first thru preparedCellAtColumn:row:, next to the delegate method tableView:willDisplayCell:forTableColumn:row:, then thru the table's drawRect: and finally to the appropriate cell's drawing methods (altho i may have the

Re: global NSMutableDictionary

2008-07-29 Thread Kirk Kerekes
Consider class methods instead of globals. See: Unmentioned there is the additional advantage of lazy initialization: (composed in Mail) + (NSMutableDictionay *) myGlobalDict { static NSMutableDictionary * result = nil; if(!result)

Re: private methods and variables

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 4:02 PM, Torsten Curdt wrote: This question is NOT about private APIs from Apple but more about how to organize structure my own code. Especially for a framework I don't want to expose implementation details to the interface. So while I found the suggestion to use a spe

Re: private methods and variables

2008-07-29 Thread Torsten Curdt
@implementation MyClass int privateVariable; There is only one of these across the entire program. It's not an instance variable. It's as close as Objective-C gets to what would be a "class variable" in another language. (Although it should probably be declared "static" to limit its l

Re: private methods and variables

2008-07-29 Thread Kyle Sluder
On Tue, Jul 29, 2008 at 7:30 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > @implementation MyClass > int privateVariable; > @end > > and > > int privateVariable; > @implementation MyClass > @end > > the first being being an ivar. The second just being a global. > But IIUC now - there really is n

Re: private methods and variables

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 6:30 PM, Torsten Curdt wrote: Thanks guys. I basically though that there was a difference between: @implementation MyClass int privateVariable; @end and int privateVariable; @implementation MyClass @end the first being being an ivar. The second just being a global. But II

Re: private methods and variables

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 6:53 PM, Kyle Sluder wrote: On Tue, Jul 29, 2008 at 7:30 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: @implementation MyClass int privateVariable; @end and int privateVariable; @implementation MyClass @end the first being being an ivar. The second just being a global. Bu

Showing another sheet in openPanelDidEnd

2008-07-29 Thread Kenny Carruthers
Does anyone know why any attempts to show a second sheet immediately after an NSOpenPanel has been dismissed causes the parent window to disappear? The user flow is as follows: - Show Import Window - Show NSOpenPanel via [panel beginSheetForDirectory...] (Panel is properly displayed

Re: private methods and variables

2008-07-29 Thread Erik Buck
@implementation MyClass int privateVariable; // this is an instance variable @end and int privateVariable; // this is a global variable @implementation MyClass @end ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Showing another sheet in openPanelDidEnd

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 7:11 PM, Kenny Carruthers wrote: Does anyone know why any attempts to show a second sheet immediately after an NSOpenPanel has been dismissed causes the parent window to disappear? The user flow is as follows: - Show Import Window - Show NSOpenPanel via [panel

Re: private methods and variables

2008-07-29 Thread Erik Buck
On Jul 29, 2008, at 7:19 PM, Erik Buck wrote: @implementation MyClass int privateVariable; // this is an instance variable @end and int privateVariable; // this is a global variable @implementation MyClass @end Never mind. both declarations above are global variables. @interface My

Re: private methods and variables

2008-07-29 Thread Kyle Sluder
On Tue, Jul 29, 2008 at 7:58 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On Jul 29, 2008, at 6:53 PM, Kyle Sluder wrote: >> Did you intend for the first example's ivar to be contained within >> braces? In that case, you were right the first time. > > You can't add additional ivars in an @impleme

Re: private methods and variables

2008-07-29 Thread Torsten Curdt
Thanks for the clarification folks! On Jul 30, 2008, at 01:58, Ken Thomases wrote: On Jul 29, 2008, at 6:53 PM, Kyle Sluder wrote: On Tue, Jul 29, 2008 at 7:30 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: @implementation MyClass int privateVariable; @end and int privateVariable; @implemen

Detecting platform architecture within Cocoa app?

2008-07-29 Thread Jack Skellington
Hello List Is there a way to determine if an App is running on Intel or PPC from within the App? /Dacobi ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: private methods and variables

2008-07-29 Thread Robert Lang
I think that's because when you compile the code, if one of your methods forward references a private method and you haven't declared it in the interface, you will get a warning. Also, when you declare privateVariable in the implementation block you are not declaring it as an instance variable of

[Newbie] Communication between two Views?

2008-07-29 Thread Hamish Allan
-- Forwarded message -- From: Hamish Allan <[EMAIL PROTECTED]> Date: Tue, Jul 29, 2008 at 5:09 PM Subject: Re: [Newbie] Communication between two Views? To: "I. Savant" <[EMAIL PROTECTED]> Cc: CocoaDev list On Tue, Jul 29, 2008 at 4:34 PM, I. Savant <[EMAIL PROTECTED]> wrote: >

Re: private methods and variables

2008-07-29 Thread Torsten Curdt
But wait ...this works OK for methods. But what about adding ivars? @interface MyClass (Private) { int myvar; } - (int) myvar; @end This gives a syntax error. Looking through some docs it seems I cannot add ivars through a category. So how can I have private ivars that don't show

Re: Detecting platform architecture within Cocoa app?

2008-07-29 Thread Steve Christensen
On Jul 29, 2008, at 12:56 PM, Jack Skellington wrote: Is there a way to determine if an App is running on Intel or PPC from within the App? Depending on what you're trying to do, you can go at least a couple routes at build time. If you only care about endianness: #ifdef __BIG_ENDIAN__ #i

method naming

2008-07-29 Thread Torsten Curdt
Class A has method - (void) something:(Someclass*)s; Class B has method - (BOOL) something:(Someclass*)s; Why on earth am I getting a warning warning: multiple methods named '-something:' found using... also found... They are on different objects. Should be obvious there is no problem.

Re: Repositioning a content view w/in a window

2008-07-29 Thread R.L. Grigg
On Jul 28, 2008, at 11:48 PM, Jonathan Hess wrote: On Jul 28, 2008, at 3:29 PM, R.L. Grigg wrote: On Jul 26, 2008, at 3:15 AM, Michael Ash wrote: On Fri, Jul 25, 2008 at 11:08 PM, Henry McGilton (Starbase) <[EMAIL PROTECTED]> wrote: On Jul 25, 2008, at 6:50 PM, Michael Ash wrote: In fact

Re: Detecting platform architecture within Cocoa app?

2008-07-29 Thread Torsten Curdt
Have a look here: http://vafer.org/gitweb/FeedbackReporter.git?a=blob;f=Sources/Main/SystemDiscovery.m;h=417d8a1f0b71224b5bb2271028926d4c5874c497;hb=63855ef8957a393a2aebd091b421f8b310395d04 Endian-ness testing is also here: http://vafer.org/gitweb/uif2iso4mac.git?a=blob;f=Sources/MyDocument.m;h

Re: method naming

2008-07-29 Thread Roland King
|-Wselector |(Objective-C and Objective-C++ only) Warn if multiple methods of different types for the same selector are found during compilation. The check is performed on the list of methods in the final stage of compilation. Additionally, a check is performed for each selector appea

Re: private methods and variables

2008-07-29 Thread Charles Steinman
--- On Tue, 7/29/08, Torsten Curdt <[EMAIL PROTECTED]> wrote: > But wait ...this works OK for methods. But what about adding > ivars? > > @interface MyClass (Private) > { > int myvar; > } > > - (int) myvar; > > @end > > This gives a syntax error. Looking through some docs it >

NSTextFieldCell - Kidnapped Focus Ring!

2008-07-29 Thread Seth Willits
I cannot for the life of me get an NSTextFieldCell (in my custom view) to show a focus ring when editing!! Is there something stupidly simple that I'm missing? [editingTextFieldCell setShowsFirstResponder:YES]; [editingTextFieldCell setFocusRingType:NSFocusRingTypeDefault]; I could

Re: private methods and variables

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 8:22 PM, Torsten Curdt wrote: So how can I have private ivars that don't show up in the interface? You can use the pImpl (pointer-to-implementation) idiom for classes that you're writing yourself: @class MyPrivateStuff; @interface MyClass : NSObject { MyPrivateS

Re: method naming

2008-07-29 Thread Charles Steinman
--- On Tue, 7/29/08, Torsten Curdt <[EMAIL PROTECTED]> wrote: > Class A has method > > - (void) something:(Someclass*)s; > > Class B has method > > - (BOOL) something:(Someclass*)s; > > Why on earth am I getting a warning > > warning: multiple methods named '-something:' > found > usi

Re: global NSMutableDictionary

2008-07-29 Thread Greg Parker
Michael Ash wrote: On Tue, Jul 29, 2008 at 2:04 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote: Or you could annotate a function as a constructor. It will run before main(). static void __InitializeGlobalStuffMan(void) __attribute__ ((constructor)); void __InitializeGlobalStuffMan(void) {

Re: Detecting platform architecture within Cocoa app?

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 8:44 PM, Steve Christensen wrote: On Jul 29, 2008, at 12:56 PM, Jack Skellington wrote: Is there a way to determine if an App is running on Intel or PPC from within the App? Depending on what you're trying to do, you can go at least a couple routes at build time. If y

Re: Detecting platform architecture within Cocoa app?

2008-07-29 Thread Phil
On Wed, Jul 30, 2008 at 7:56 AM, Jack Skellington <[EMAIL PROTECTED]> wrote: > Is there a way to determine if an App is running on Intel or PPC > from within the App? > Gestalt() is still good for this, using the gestaltSysArchitecture selector.

Checking for hackintosh

2008-07-29 Thread John Joyce
Does anybody have a means or a tool for checking for hackintoshes? I really don't approve of such things and would like to leave clever messages on my own software if it is run on a hackintosh. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: method naming

2008-07-29 Thread Torsten Curdt
The compiler doesn't know what class the object belongs to. You're sending the message either to a variable of type id or the result of a method that returned id.The id type can hold any class, so if there are two identically named methods with different signatures (BOOL return type vs. voi

Re: private methods and variables

2008-07-29 Thread Torsten Curdt
Thanks for that! Really interesting - but also sounds really terrible :) Makes you wonder why stuff like hasn't been fixed in Objective-C 2.0. cheers -- Torsten On Jul 30, 2008, at 04:03, Ken Thomases wrote: On Jul 29, 2008, at 8:22 PM, Torsten Curdt wrote: So how can I have private ivars

Re: method naming

2008-07-29 Thread Bill Bumgarner
On Jul 29, 2008, at 7:41 PM, Torsten Curdt wrote: So I did't get why this should be ambiguous because NSApp obviously can't be of type id. Well turns out - it actually is. And now it all makes sense again :) I've just replaced [NSApp ..] with [[NSApplication sharedApplication] ...] Glad

Re: private methods and variables

2008-07-29 Thread Bill Bumgarner
On Jul 29, 2008, at 7:45 PM, Torsten Curdt wrote: Thanks for that! Really interesting - but also sounds really terrible :) Makes you wonder why stuff like hasn't been fixed in Objective-C 2.0. It has been in the modern runtime -- the runtime used in on 64 bits and "other places". In that e

Simple Core Data Question

2008-07-29 Thread Dave DeLong
Hi everyone, I'm taking a stab at Core Data and am starting to grok how it works. I've built a couple of small test apps to try different configurations of entities and relationships, and whatnot. However, I've come up against a snag. Here's the layout: I've got two entitles, "State" and "City"

Re: private methods and variables

2008-07-29 Thread Ken Thomases
On Jul 29, 2008, at 10:19 PM, Bill Bumgarner wrote: It isn't fixed in the 32 bit runtime because we couldn't figure out a way to do so that both preserved binary compatibility and used a finite amount of memory / CPU. Well, there's always 6-way Universal binaries. ;P Cheers, Ken _

Re: private methods and variables

2008-07-29 Thread Bill Bumgarner
On Jul 29, 2008, at 8:41 PM, Ken Thomases wrote: On Jul 29, 2008, at 10:19 PM, Bill Bumgarner wrote: It isn't fixed in the 32 bit runtime because we couldn't figure out a way to do so that both preserved binary compatibility and used a finite amount of memory / CPU. Well, there's always 6-w

Re: Simple Core Data Question

2008-07-29 Thread Dave DeLong
Well, after trying again (for the third time), it suddenly started working and I have no idea why. My ego doesn't want me to admit that I was binding to the wrong view, but I'll bet that's what it was. Thanks anyway! Dave ___ Cocoa-dev mailing list (C

CSV parsing (large files)

2008-07-29 Thread Jacob Bandes-Storch
I've got several large-size CSV files (a total of about 1.25 million lines, and an average of maybe 10 or so columns) that I want to parse into a 2D array. I found some parsing code that uses NSScanner, and it works fine with small files, but it's very resource-intensive and slow with large

Re: CSV parsing (large files)

2008-07-29 Thread Simone Tellini
Il giorno 30/lug/08, alle ore 06:55, Jacob Bandes-Storch ha scritto: I've got several large-size CSV files (a total of about 1.25 million lines, and an average of maybe 10 or so columns) that I want to parse into a 2D array. I found some parsing code that uses NSScanner, and it works fine