RE: Style Question (Robert Claeson)

2008-06-30 Thread john darnell
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roni Music Sent: Saturday, June 28, 2008 1:13 PM To: cocoa-dev@lists.apple.com Subject: Re: Style Question (Robert Claeson) the bottom of the page below has one opinion why one style is superior

Loading a nib

2008-06-11 Thread john darnell
Guys, this may be my third time posting this to the list. It's not showing up in my Sent box using the previous two methods, so if this is a duplicate message, once again I apologize. Using Chapter 9 of Aaron Hillegass' book, COCOA PROGRAMMING FOR MAC OS as a model, I attempted to create a very

RE: Loading a nib

2008-06-11 Thread john darnell
Thank you, Jens. That did the trick, though it took me a couple of bonehead (no offense meant to any Minbari reading this list) false runs to figure it out. R, John -Original Message- From: Jens Alfke [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 2:54 PM To: john darnell

RE: adding a delegate to a class

2008-06-10 Thread john darnell
Without knowing what exactly you are trying to achieve, it's hard to advise you, Angelo. Would a simple printf or one of its variants do for you? R, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Angelo Chen Sent: Tuesday, June 10, 2008 8:11

RE: Key-Value pairs

2008-06-04 Thread john darnell
failed at that, and that failing is my fault. I will attempt to do better. Thanks again for your tutelage. I appreciate it. R, John Darnell ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Key-Value pairs

2008-06-02 Thread john darnell
Hello everyone: This is a discussion on theory and not a request for any practical help. Please also be advised I am not trying to bash Cocoa or Objective-C; I am simply curious why the designers of same built the language the way they did. Understanding theory can sometimes geometrically

RE: NSTableView

2008-05-23 Thread john darnell
Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 3:13 PM To: john darnell Cc: Cocoa-dev@lists.apple.com Subject: Re: NSTableView On Fri, May 23, 2008 at 4:03 PM, john darnell [EMAIL PROTECTED] wrote: - (id) directoryTable: (NSTableView *) aTableView objectValueForTableColumn

RE: NSTableView

2008-05-23 Thread john darnell
Thanks for the feedback on my messages. I'll work to do better on the subject. And as you can see from other responses, your answer was correct (but you already know that). Take care, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Buck Sent:

RE: Writing Cocoa framework's for iPhone

2008-05-21 Thread john darnell
I kinda got the idea that Mr. Sanz was being sarcastic...After all, this topic keeps coming up and coming up and coming up... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of I. Savant Sent: Wednesday, May 21, 2008 6:24 AM To: Bruno Sanz Cc:

Trying to understand -- please help...

2008-05-21 Thread john darnell
Hello Everyone: I decided that it was time for a play period this morning so I set a task for myself; to place a combo box on a dialog and populate it with the names of ten cities--no more than that. I just wanted to see if my understanding of the language had progressed enough to do so. I

RE: Trying to understand -- please help...

2008-05-21 Thread john darnell
: Re: Trying to understand -- please help... To: john darnell [EMAIL PROTECTED] Ok, I'm somewhat of a beginner myself, but here's what I see. First off: Your array is being 'emptied' because [NSArray arrayWithObjects:] returns an autoreleased array. You should retain this like so [[NSArray

RE: Trying to understand -- please help...

2008-05-21 Thread john darnell
I don't know the answer to that question myself. Maybe it was because I was running it in the debugger... R, John -Original Message- From: GĂ©rard Iglesias [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 11:35 AM To: Hank Heijink (Mailinglists) Cc: john darnell; Cocoa-dev

RE: Delegates

2008-05-20 Thread john darnell
, at 5:00 PM, john darnell wrote: yeah, I know...I'm dating myself with the use of the word grok Huh? You're not dating anything. :P I think grok gets used on this list at least a few times a week. Grok is part of the geek lexicon, even among people who have no idea where it comes from

RE: Guidance for Cocoa's steep learning curve

2008-05-19 Thread john darnell
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ash Sent: Saturday, May 17, 2008 1:56 AM To: Cocoa Developers Subject: Re: Guidance for Cocoa's steep learning curve On Fri, May 16, 2008 at 10:57 PM, john darnell [EMAIL PROTECTED] wrote

Delegates

2008-05-19 Thread john darnell
Hello Everyone: I've been trying to get my head wrapped around the concept of delegates and I thought I would run it by the list to see if I am approaching the correct idea behind a delegate. As far as I can tell, it is kind of like a virtual function (virtual because I, the programmer, am

RE: Delegates

2008-05-19 Thread john darnell
I believe it was Carl Jung who said that ideas needed meathooks in the mind to help us retain/organize our thoughts and many of you have helped me figure out the right meathooks to use when attempting to grok the meaning of delegates (yeah, I know...I'm dating myself with the use of the word

RE: Guidance for Cocoa's steep learning curve

2008-05-16 Thread john darnell
I don't mean to be mean, but I agree with Joseph; most Apple documentation is really, really poor. *No, that's not correct.* The documentation is extensive, and comprehensive, but unless you already know what you are reading about, it might as well have been written in Farsi (no offense meant to

RE: Guidance for Cocoa's steep learning curve

2008-05-16 Thread john darnell
Sigh. Your attitude reminds me of a conversation I once had with a fellow programmer. When I was encouraging her to add more documentation to the code, she replied, jokingly, If it was hard for me to write, then it should be hard for them to read. The sad thing is that you are not joking...

Getting help...

2008-05-15 Thread john darnell
Okay, okay, this probably is off-topic, but I just spent fifteen minutes at the Apple site trying to figure out how to get the needed help without success, so at the risk of fiery flames shooting my way and verbal attacks the likes of which would make H.L. Mencken proud, I am going to ask my

RE: Getting help...

2008-05-15 Thread john darnell
: Getting help... john darnell wrote: - (void) beginSheetModalForWindow:(NSWindow *) ykpfqy //the gibberish is italicized For what it's worth, I experienced this yesterday when I was looking at the docs in Firefox on a Windows machine. Looking now with Firefox and Safari on my Mac, the docs

RE: is this badly written code?

2008-04-15 Thread john darnell
I am a long-time C/C++ programmer, with roots in XBase and Basic. Code style is a subject that often comes up with newbie programmers regardless of the language, and it deserves a thoughtful response. I agree wholeheartedly with Mr. Stiles; more than anything else, your style of coding *is* a

RE: is this badly written code?

2008-04-15 Thread john darnell
Mr. LaMarche: I agree wholeheartedly. Thanks for adding your very salient point. Mr. IS: My apologies. I have no desire to divert the list to some off-topic subject. R, John On Apr 15, 2008, at 10:25 AM, john darnell wrote: 4.) Comment verbosely and often. You may understand now

RE: is this badly written code?

2008-04-15 Thread john darnell
. It's what glues a community together... Take care. John -Original Message- From: I. Savant [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 10:20 AM To: john darnell Cc: cocoa-dev Developers Subject: Re: is this badly written code? Mr. IS: *Mister* Idiot Savant? I like

RE: is this badly written code?

2008-04-15 Thread john darnell
#include .h personnaly i prefere to sort line by size ;-) #include aaa.h #include bb.h #include cc.h [John Darnell says:] Yeah, that would work, too. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

RE: A simple Objective-C question

2008-04-10 Thread john darnell
Mr. Krishna: I, too am new to Objective-C, but in the two books I have been studying on the language, they both make the point that Objective-C plays nicely with both C and C++. Could you simply write a standard C++ class and instantiate it the same way one does with other C++ classes (i.e.

Newbie question

2008-04-07 Thread john darnell
Hello all: For those of you who do not like answering elementary questions, you might want to give this message a pass. I am making my first foray into writing Cocoa applications, and I have created a very simple class. The header file looks like this: /* Chooser */ #import

RE: Newbie question

2008-04-07 Thread john darnell
Thanks to all of you who answered my question. I had seven answers within an hour of posting, and it shows me that this bunch is willing to help, even with simple questions (I groaned when I read the first message, and realized how *obvious* the syntax error was). I'll try not to abuse this