Re: NSCalendar and NSDates prior to October 15, 1582

2015-02-05 Thread Jeffrey Oleander
On 2015 Jan 30, at 12:32, Steve Mykytyn wrote: The documentation for the Date and Time Programming Guide for iOS does not seem to be telling the truth, or perhaps I'm doing something wrong. From https://developer.apple.com/library/ios/documentation/Cocoa/ Conceptual/DatesAndTimes/Articles/d

Re: Blurry is the New Sharp

2015-01-08 Thread Jeffrey Oleander
On 2015 Jan 05, at 18:38, Graham Cox wrote: People suggested that OS X had jumped the shark with Lion. If so, we're into Jaws VIII vs. Godzilla 3D territory now. They foisted intentionally blurry text on us by 2002, but don't single out the Apple execs and management. It has infected all of

Re: Saving NSAttributedString to a File

2015-01-07 Thread Jeffrey Oleander
On 2014 Dec 19, at 17:00, Jens Alfke wrote: On Dec 19, 2014, at 1:39 PM, Charles Jenkins wrote: But when it comes time to save to a file format selected from AppKit additions (e.g. RTFFromRange:documentAttributes:), any unusual, application-specific attributes will be lost. There is no built

Re: Disabling screen capture

2014-02-24 Thread Jeffrey Oleander
On 2014 Feb 21, at 18:24, Scott Ribe wrote: On Feb 21, 2014, at 2:26 PM, Bradley O'Hearne wrote: Industries such as medical (HIPAA), legal, government, education, military defense, etc. all have such security needs. The only way I can see for the app under discussion to work is to create kio

Re: Threaded drawing

2013-12-11 Thread Jeffrey Oleander
On 2013 Dec 11, at 10:01, Jens Alfke wrote: On 2013 Dec 11, at 04:39, 2551 <2551p...@gmail.com> wrote: It’s certainly seemed the case to me that I would have probably spent less time just writing my own code from scratch than I spend trying to figure out how half the methods I’m trying to

Re: WebView blocks User Interface

2013-12-05 Thread Jeffrey Oleander
On 2013 Dec 05, at 08:15, Gerriet M. Denkmann wrote: On 5 Dec 2013, at 19:55, Roland King wrote: On 5 Dec, 2013, at 8:34 pm, Gerriet M. Denkmann wrote: Don't send 2Mb of search results to your webview. Do you really need the case where you search for one character only? Don't send data unt

Re: C functions

2013-10-18 Thread Jeffrey Oleander
On 2013 Oct 18,, at 04:48, Shane Stanley wrote: is there any way to build a call to a C function on the fly? I mean something like pass a string to a method, and have it call the function of that name? This at least used to be shown in the "Objective-C 2.0 Runtime Programming Guide". __

Re: Core Data with ODBC databases?

2013-10-16 Thread Jeffrey Oleander
On 2013 Oct 16, at 12:47, Flavio Donadio wrote: For sure, ODBC is not the answer here, nor direct client access to the database, as we need something to manage locking and concurrency, as you said -- unless the RDBMS can do that. Is there such a beast? The reason we look to CoreData as a Holy

Re: Confusion about NSWritingDirectionNatural

2013-09-26 Thread Jeffrey Oleander
On 2013 Sep 26, at 21:02, dangerwillrobinsondan...@gmail.com wrote: Good news is LTR languages tend to not have a lot of RTL interspersed. It's somewhat common for authors in certain fields to have to mix, e.g. German, Italian, Greek and Hebrew, or Hebrew, ProtoPhoenician, and Arabic in the sam

Re: Progress for archiving/dearchiving

2013-09-16 Thread Jeffrey Oleander
On 2013 Sep 16, at 08:53, Graham Cox wrote: If I wanted to add some sort of progress reporting to archiving and dearchiving, what's a good way to do it? The problem seems to me to know what the 'count' of things read from/written to the file is to set the progress max value. Since the delegate

Re: 30x faster JSON date parsing

2013-09-09 Thread Jeffrey Oleander
On 2013 Sep 09, at 13:14, Marcel Weiher wrote: On 2013 Sep 9, at 18:11 , Jens Alfke wrote: [...] [fg160,160,160;16:34:40.488| [fg0,128,0;[;NSDateFormatter took 26.97 µsec [fg160,160,160;16:34:48.649| [fg0,128,0;[;CBLParseDatetook 0.47 µsec (58x) Now, the tradeoff is that the o

Re: Converting RTFD to Word with embedded images

2013-07-15 Thread Jeffrey Oleander
On 2013 Jul 15, at 13:06, Kyle Sluder wrote: On Jul 15, 2013, at 8:59 AM, Buddy Kurz wrote: Pages can export to Word with the attachment. Why can't I? Pages probably doesn't use NSString's Word exporter. What happens if you use TextEdit? What is RTFD format? It's a directory, with an

Re: Core Data Reverse Engineering KickStarter Project

2013-06-24 Thread Jeffrey Oleander
On 2013 Jun 24, at 06:10, Michael Crawford wrote: Scott, How do you do it? Honestly I want to know. The best I've ever been able to come up with is that if someone always writes the same kind of code, say repeatedly writing eCommerce sites for different clients, then they can base an estimate

Re: iOS books, etc for experienced OSX programmers

2013-02-27 Thread Jeffrey Oleander
> From: James Lee > Subject: Re: iOS books, etc for experienced OSX programmers > To: "Koen van der Drift" > Cc: "Cocoa Dev" > Date: Saturday, 2013 February 23, 14:21 > I am looking at Xcode 4 by Fritz Anderson now. I read everything I could get my hands on: Maher Ali _Advanced iOS 4 Programmi

Re: Sandboxing die.die.die

2012-08-31 Thread Jeffrey Oleander
> From: davel...@mac.com > To: cocoa-dev@lists.apple.com > Date: Thursday, 2012 August 30, 18:26 >> On 2012 Aug 30, at 18:09, z...@mac.com wrote: >>> From: Jeffrey Oleander >>> Thu, 2012 Aug 30 13:57:44 >>> To: >>> Subject: Re: Sandboxi

Re: Sandboxing die.die.die

2012-08-30 Thread Jeffrey Oleander
Sandboxing die.die.die Code-Signing die.die.die Javascript die.die.die Kludgey CPUs die.die.die Bodyshopping die.die.die (throwing hammer at hare-brained power-mad forces of evil) Now, when can we cut the chains and get back to developing great apps? ___

Re: Sharing a file between Mac and iOS

2012-07-19 Thread Jeffrey Oleander
> From: Jens Alfke > Subject: Re: Sharing a file between Mac and iOS > To: "Dennis" > Cc: Cocoa-dev@lists.apple.com > Date: Thursday, 2012 July 19, 13:32 >> On 2012 Jul 19, at 08:22, Dennis wrote: >> But I am stumped as to how I might be able to >> more or less seamlessly handle syncing the fil

Re: Question about hebrew in textfields and textviews

2012-04-15 Thread Jeffrey Oleander
> Kyle Sluder 2012-04-11 12:26 wrote: >> On 2012 Apr 11, at 10:17, Matthew >> Weinstein wrote: >> Thanks for all the replies. Unfortunately >> NSNaturalTextAlignment doesn't seem to affect >> the justification of the textfields. Try creating >> a simple project and simply put a textfield and >> t

Re: How to cancel a loading document in NSDocument's readFromURL:ofType:error method ?

2012-02-09 Thread Jeffrey Oleander
> From: Gilles Celli > Subject: Re: How to cancel a loading document in NSDocument's > readFromURL:ofType:error method ? > To: "Kyle Sluder" , "Mike Abdullah" > > Cc: cocoa-dev@lists.apple.com > Date: Thursday, 2012 February 9, 14:23 > > Thanks for the quick answers! > > Yes I'm targeting Ma

Re: UITapGestureRecognizer and state/action w/rt numberOfTapsRequired

2011-11-08 Thread Jeffrey Oleander
> From: Ben Kennedy > Subject: UITapGestureRecognizer and state/action w/rt numberOfTapsRequired > To: "Cocoa-Dev List" > Date: Tuesday, 2011 November 8, 14:56 > From > http://developer.apple.com/library/ios/#documentation/uikit/reference/UITapGestureRecognizer_Class/Reference/Reference.html > :

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Jeffrey Oleander
> Alex Kac 2011-07-24 13:31 wrote: >> 2011-07-25 20:22, Jeffrey Oleander wrote: >>>> Alex Kac 2011-07-24 13:07 wrote: >>>> ...its a one window interface... >>> >>> This is a deal killer.  Seeing things next to >>> each other is vita

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Jeffrey Oleander
> Alex Kac 2011-07-24 13:07 wrote: > ...its a one window interface... This is a deal killer. Seeing things next to each other is vital. It's the reason we had to chop down so many trees in the olden days, for highly cross-referenced listings (even with tiny little laser print shrinking 2 older

over-released NSIdEnumerator

2010-09-13 Thread Jeffrey Oleander
After my main NSDocument algorithm method was done doing its thing and returned up the call chain to where the button click had started its action, it would flip to showing NSPopAutoreleasePool and I was crashing with EXC_BAD_ACCESS. So, I looked at all of my alloc, initWith..., retain, and rel

Re: web-based Cocoa dev docs inaccessible

2010-09-13 Thread Jeffrey Oleander
> On Mon, 2010/09/13, Andy Lee wrote: > From: Andy Lee > Subject: Re: web-based Cocoa dev docs inaccessible > To: "Jeffrey Oleander" > Cc: cocoa-dev@lists.apple.com > Date: Monday, 2010 September 13, 2:01 >> On 2010 Sep 12, at 6:32 PM, Jeffrey Oleander wrote

web-based Cocoa dev docs inaccessible

2010-09-12 Thread Jeffrey Oleander
Normally, I'd file an on-line criticism of the docs, but I can't get there, and this is the closest means I have to doing so. I was trying to look up something about NSAttributedStrings and found that the usual link led me to a page that no longer has a search box, links to docs, etc. My BookMar

Re: Elapsed time vs sleep

2010-07-27 Thread Jeffrey Oleander
> On Mon, 2010/07/26, Kyle Sluder wrote: >> Charlie Dickman <3tothe...@comcast.net> wrote: >> As long as the NSTimer firing interval is >> sufficiently small the NSTimer can be used. >> If the run loop is stalled for any "significant: >> time _all_ timers will be inaccurate to some >> degree. > >

Re: TUTORIAL: Generating Unique ID Strings

2010-05-17 Thread Jeffrey Oleander
> On Fri, 2010/05/14, Thomas Wetmore wrote: > From: Thomas Wetmore > Subject: Re: TUTORIAL: Generating Unique ID Strings > To: "Jens Alfke" > Cc: "CocoaDev" > Date: Friday, 2010 May 14, 12:30 > I must say that I am constantly > amused by the nanniness of the Apple discussion lists, > telling pe

Re: How do I compare two NSDates using NSPredicate & Core Data

2010-04-12 Thread Jeffrey Oleander
A date-time is a date-time, regardless of how it is displayed or entered or obtained from the system. The whole purpose of the NSDate object is to allow easy comparison, and determination of intervals by subtraction... well, a couple of the main purposes... and be able to display dates and interv

Re: NSXML Parsing Problem

2010-03-26 Thread Jeffrey Oleander
> On Thu, 2010/03/25, Keary Suska wrote: >> Maybe a cool option for NSXML would be to be able to >> specify the & pound ; sequence and have it map it to >> whatever... > My XML is a little rusty but IIRC this is an XML issue, and > any XML parser would choke. You have to define (or perhaps

Re: Changing appearance of NSDatePicker?

2010-03-16 Thread Jeffrey Oleander
> On Tue, 2010/03/16, Ben Golding wrote: > From: Ben Golding > Subject: Changing appearance of NSDatePicker? > To: "Cocoa-Dev List" > Date: Tuesday, 2010 March 16, 2:10 AM > Is it possible to change the way the dates are > presented in NSDatePicker in graphical mode?  > In my app I have a calend

Re: Better sorting using threads?

2010-03-14 Thread Jeffrey Oleander
> On Fri, 2010/03/12, Andrew James wrote: > From: Andrew James > Subject: Re: Better sorting using threads? > To: "Gwynne Raskind" , "Ken Ferry" > > Cc: "Cocoa-Dev List" > Date: Friday, 2010 March 12, 13:55 > My concern is that keeping traditional C-arrays > in sorted order means > > 1) findin

Re: predicate for a Core Data fetch request rejected by SQL

2010-03-07 Thread Jeffrey Oleander
> On Sat, 2010/03/06, Joanna Carter wrote: > This quote from the Core Data Programming Guide: > > There are some interactions between fetching and > the type of store. In the XML, binary, and > in-memory stores, evaluation of the predicate and > sort descriptors is performed i

Re: Messaging Cocoa apps through Terminal

2010-03-04 Thread Jeffrey Oleander
> On Wed, 2010/03/03, Matt Neuburg wrote: > From: Matt Neuburg > Subject: Re: Messaging Cocoa apps through Terminal > To: "Ulai Beekam" > Cc: cocoa-dev@lists.apple.com > Date: Wednesday, 2010 March 03, 13:02 >> On Wed, 2010 Mar 03 16:17:13 +, >> Ulai Beekam >> said: >>get the point. Just so

Re: Core Data: Custom to-many relationship setter not being invoked

2010-02-23 Thread Jeffrey Oleander
> On Tue, 2010/02/23, Ken Tabb wrote: > From: Ken Tabb > Subject: Re: Core Data: Custom to-many relationship setter not being invoked > To: "Quincey Morris" > Cc: "cocoa-dev" > Date: Tuesday, 2010 February 23, 03:20 AM > Adding is via a button going to an > Employee array controller's -add. In

Re: NSDocument override Undo's default handling of changes count

2010-02-01 Thread Jeffrey Oleander
> On Mon, 2010/02/01, Ernesto Giannotta wrote: > From: Ernesto Giannotta > Subject: NSDocument override Undo's default handling of changes count > To: "Cocoa List" > Date: Monday, 2010 February 1, 04:27 > I'm using NSDocument default undoManager but want to > override it's change counting behavi

Re: Use NSDocument as a variable of another NSDocument

2010-01-18 Thread Jeffrey Oleander
> At Mon, 2010/01/18 15:19, Quincey Morris wrote: > On 2010 Jan 18, at 10:48, Jarod Wen wrote: >> Is it a proper design to use a NSDocument as a >> variable of another NSDocument? >> >> I am now working on an application which generates >> some information from a movie. The information >> gener

Re: Bindings Problem

2010-01-18 Thread Jeffrey Oleander
> On Sun, 2010/01/17, Ken Thomases wrote: >> On 2010 Jan 17, at 11:15, Jeffrey Oleander wrote: >>> On Sat, 2010/01/16, Ken Thomases > wrote: >>>> On 2010 Jan 14, at 17:11, Carter R. Harrison wrote: >>>> My model is an NSMutableSet that contains >

Re: Bindings Problem

2010-01-17 Thread Jeffrey Oleander
> On Sat, 2010/01/16, Ken Thomases wrote: >> On 2010 Jan 14, at 17:11, Carter R. Harrison wrote: >> My model is an NSMutableSet that contains >> NSMutableDictionaries. > > I think this is asking for trouble.  A set of mutable > dictionaries doesn't make much sense. > > ..."Equal" is determined b

Re: passing a method name?

2009-12-20 Thread Jeffrey Oleander
> On Sun, 2009/12/20, Graham Cox wrote: > From: Graham Cox > Subject: Re: passing a method name? > To: "Chunk 1978" > Cc: "cocoa-dev Dev" > Date: Sunday, 2009 December 20, 07:29 >> On 2009/12/21, at 00:18, Chunk 1978 wrote: >> i have a bunch of methods that will call one >> method.  currently,

Re: beginner question, NSNumber, NSDecimalAsNumber

2009-11-09 Thread Jeffrey Oleander
> On Mon, 2009/11/09, Alastair Houghton wrote: > From: Alastair Houghton > Subject: Re: beginner question, NSNumber, NSDecimalAsNumber > To: "Thomas Wetmore" > Cc: "list-cocoa-dev List" > Date: Monday, 2009 November 9, 5:55 >> On 2009 Nov 09, at 10:49, Thomas Wetmore wrote: >> The approach foun

Re: Should I learn CoreData for this project?

2009-11-04 Thread Jeffrey Oleander
> 1. Keep going back to the documentation. > It takes time to grasp all the concepts. If something is not clear and complete, submit a comment on the documentation. Every documentation web page has a link to a comment form. ___ Cocoa-dev mai

Re: whether to use core data...

2009-10-04 Thread Jeffrey Oleander
> >> Anyway, I ended up with a graph of Objects and > methods which looks nice and consistent and -- clean!  > :-) > > I'm happy with my model. And I'm certain it would benefit > from Core Data. > > > A1: A lot of beginners complain about this. A lot of > intermediate to pros recognize that the do

Re: How to create GPS enabled Iphone application?

2009-08-26 Thread Jeffrey Oleander
> On Wed, 2009/08/26, Luke the Hiesterman wrote: > From: Luke the Hiesterman > Subject: Re: How to create GPS enabled Iphone application? > To: "I. Savant" > Cc: "Jeffrey Oleander" , "Cocoa Dev" > > Date: Wednesday, 2009 August 26, 10:10

Re: How to create GPS enabled Iphone application?

2009-08-26 Thread Jeffrey Oleander
> On Wed, 2009/08/26, Luke the Hiesterman wrote: > From: Luke the Hiesterman > Subject: Re: How to create GPS enabled Iphone application? > To: "Jeffrey Oleander" > Cc: "Cocoa Dev" , "rethish" > Date: Wednesday, 2009 August 26, 08:30 >> On

Re: How to create GPS enabled Iphone application?

2009-08-26 Thread Jeffrey Oleander
> On Wed, 2009/08/26, rethish wrote: > From: rethish > Subject: How to create GPS enabled Iphone application? > To: "Cocoa Dev" > Date: Wednesday, 2009 August 26, 07:34 > I need to create GPS enabled Iphone application > which is to display the nearby hotels and other > facilities. > > How can

Re: When do I need to override hash?

2009-08-21 Thread Jeffrey Oleander
> On Fri, 2009/08/21, Quincey Morris wrote: > From: Quincey Morris > Subject: Re: When do I need to override hash? > To: "cocoa-dev" > Date: Friday, 2009 August 21, 00:48 >> On 2009 Aug 20, at 22:05, Jeff Laing wrote: >> Without wanting to keep the thread going forever, >> can I just ask why we

Re: Printing Multiple-Pages Issue

2009-08-17 Thread Jeffrey Oleander
> On Mon, 2009/08/17, Renzil D'Souza wrote: > From: Renzil D'Souza > Subject: Re: Printing Multiple-Pages Issue > To: "Graham Cox" > Cc: cocoa-dev@lists.apple.com > Date: Monday, 2009 August 17, 12:39 AM > > No, I want control over how many pages I'm dividing my > view into, and precisely how I

Re: Document-Based Application

2009-07-26 Thread Jeffrey Oleander
> On Mon, 2009/07/27, Graham Cox wrote: > From: Graham Cox > Subject: Re: Document-Based Application > To: "David Blanton" > Cc: "cocoa-dev" > Date: Monday, 2009 July 27, 00:10 >> On 2009/07/27, at 2:09 PM, Quincey Morris wrote: >>> On 2009 Jul 26, at 20:39, David Blanton wrote: >>> I have 22

Re: Cocoa Graphics Parsing

2009-07-21 Thread Jeffrey Oleander
> From: Courtney Arnold > Subject: Re: Cocoa Graphics Parsing > To: cocoa-dev@lists.apple.com > Date: Monday, 2009 July 20, 21:25 > I am expecting that I am going to > have to drop down to lower levels. I want to be able to > manually parse an image of a UPC barcode. I assume that the > best way

Re: UML Diagramming or Other Helpful Software

2009-06-24 Thread Jeffrey Oleander
> On Wed, 2009/06/24, I. Savant wrote: > From: I. Savant > Subject: Re: UML Diagramming or Other Helpful Software > To: "Dennis Christopher" > Cc: "cocoa-dev@lists.apple.com" > Date: Wednesday, 2009 June 24, 10:18 >> On 2009 Jun 24, at 11:16, Dennis Christopher wrote: >> Has anyone found a dia

Re: Coming up with ideas

2009-06-14 Thread Jeffrey Oleander
> On Sat, 2009/06/13, Grant Erickson wrote: > From: Grant Erickson > Subject: Re: Coming up with ideas > To: "Graham Cox" > Cc: cocoa-dev@lists.apple.com > Date: Saturday, 2009 June 13, 11:13 >> On 2009/06/12 23:34, Graham Cox wrote: >>> On 2009/06/13, at 13:27, WT wrote: On 2009 Jun 13, a

Re: NSXMLParser - howto resolve entities defined in DTD

2009-06-01 Thread Jeffrey Oleander
> On Mon, 2009/06/01, Keary Suska wrote: > From: Keary Suska > Subject: Re: NSXMLParser - howto resolve entities defined in DTD > To: "Cocoa-Dev (Apple)" > Date: Monday, 2009 June 1, 10:16 >> On 2009 May 31, at 4:31 PM, Dominik Pich wrote: >> I use NSXMLParser to parse large XML files-- going >

Re: what am I missing with NSString ?

2009-05-26 Thread Jeffrey Oleander
> On Tue, 2009/05/26, Volker in Lists wrote: > From: Volker in Lists > Subject: Re: what am I missing with NSString ? > To: "vinai" > Cc: Cocoa-dev@lists.apple.com > Date: Tuesday, 2009 May 26, 08:41 > from the code listed I cannot tell if you alloc'ed memory > for your NSString at all? > > Wh

Re: Databases on Cocoa (was Re: Invoice program made in Objective c/Cocoa)

2009-05-18 Thread Jeffrey Oleander
Yah, it's getting there. It's just not there yet. The data modeling still isn't quite up to ORM standards we had nearly 30 years ago. When we dink with PHP and Python which have handy APIs, it can get to be frustrating. Just provide input via the bugreporter and comments to the docs, and st

Re: File formats for multi-doc app: packages, single files or zipped alternatives

2009-05-17 Thread Jeffrey Oleander
> On Sun, 2009/05/17, Keith Blount wrote: > From: Keith Blount > Subject: File formats for multi-doc app: packages, single files or zipped > alternatives > To: cocoa-dev@lists.apple.com > Date: Sunday, 2009 May 17, 12:20 > I’m working on version 2 of my software at the moment, > and in so doing

Re: Calling delegates explicitly

2009-05-17 Thread Jeffrey Oleander
> On Sat, 2009/05/16, Jason Stephenson wrote: > From: Jason Stephenson > Subject: Re: Calling delegates explicitly > To: "Cocoa Cocoa-Dev" > Date: Saturday, 2009 May 16, 23:04 >> Eric E. Dolecki wrote: >> If I understand you, make a method which you can call >> directly and call this also from

Re: A tree data structure?

2009-05-05 Thread Jeffrey Oleander
> On Tue, 2009/05/05, WT wrote: > From: WT > Subject: Re: A tree data structure? > To: "Cocoa-Dev List" > Date: Tuesday, 2009 May 5, 12:19 > Please let's not forget that a tree data structure > is often pretty much useless without some form of > balancing... The OP's post reminds me of a coupl

Re: NSXMLParser and NSDocument

2009-04-30 Thread Jeffrey Oleander
> On Tue, 2009/04/28, Graham Cox wrote: >> On 2009/04/29, at 08:34, Jeffrey Oleander wrote: >> I've been having 2 intermittent compilation errors >> on 10.3.9 in >> - (BOOL)loadDataRepresentation:(NSData*)data >> ofType:(NSString*)fileType >

NSXMLParser and NSDocument

2009-04-28 Thread Jeffrey Oleander
I've been having 2 intermittent compilation errors on 10.3.9 in - (BOOL)loadDataRepresentation:(NSData*)data ofType:(NSString*)fileType { BOOL success; NSString * lowercaseFileType = [fileType lowercaseString]; NSLog(@"fileType=%S", lowercaseFileType); if ([lowercas

Re: NSDateFormatter for ISO8601

2009-04-28 Thread Jeffrey Oleander
> On Mon, 2009/04/27, Martijn van Exel wrote: > Unrelated: one of the XML attributes that needed > parsing was a ISO8601 style date string, for > which neither NSDate nor NSDateFormatter > curiously does not seem to provide a parser. ? Of course, it will parse ISO dates. You just need to give i

Re: parsing a string into words

2009-04-26 Thread Jeffrey Oleander
At Sun, 2009-04-26, 09:01, Alastair Houghton wrote: >> At 2009 Apr 26, 04:33, Jeffrey Oleander wrote: >> NSArray * tokens = [string >> componentsSeparatedByCharactersInSet: >> whitespaceCharacterSet]; > No, no, no.  If you read Gerriet's original post, >

Re: parsing a string into words

2009-04-25 Thread Jeffrey Oleander
NSArray * tokens = [string componentsSeparatedByCharactersInSet: whitespaceCharacterSet]; ___ 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 co

OO idiom avoiding switch and if

2009-04-09 Thread Jeffrey Oleander
There's a programming idiom to avoid using complex if statements and switch/case statements, and instead to just send a message to a different class of object. I'm doing some parsing of an old text data format which has a hierarchy with a record and then sub-records and sub-sub records, 1 per "