Re: Cocoa Newbie Thread/Memory Problems

2010-03-17 Thread Bill Hernandez
On Mar 16, 2010, at 4:38 PM, Dave wrote: > - (NSString*)makeURLString:(NString*) theBaseURL ForDate:(NSDate*)theDate > UsingDatabse:(NString*) theDatabaseType Dave, Does it matter that UsingDatabse is misspelled ? Good Luck, Bill Hernandez

Re: Programmatically binding Core Data to dynamic NSTableColumns

2010-03-17 Thread Bill Hernandez
y generates 6 rows, one > for each Item. > > I've tried many variations of the toObject and withKeyPath: values to no > avail. I've looked through all the Key Value Coding and other Apple dev > documentation and Googled like mad, but after 3 unproductive days I'

Re: Programmatically binding Core Data to dynamic NSTableColumns

2010-03-17 Thread Bill Hernandez
On Mar 17, 2010, at 2:17 PM, Bill Hernandez wrote: >> (It's in an if statement, so it binds to either numberData or stringData as >> appropriate.) > Michael, Sorry I missed the part about the if statement... I am running into a similar problem, the log shows the data (ar

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
you might be having the same problem, but you might take a quick look... Best of luck, Bill Hernandez Plano, Texas___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
rough using the debugger I found the mismatch. I don't know if you might be having the same problem, but you might take a quick look... Best of luck, Bill Hernandez Plano, Texas___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
our problems, but it was just something I ran into. Bill Hernandez Plano, Texas___ 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 cocoa-dev-admins(at)lists.apple

applicationShouldTerminateAfterLastWindowClosed Document-based Project Help?

2010-03-23 Thread Bill Hernandez
} I am missing something with either not having the right class, or probably with the Nib Window connections. I'd be grateful for some help. Bill Hernandez Plano, Texas Steve Herman1 wrote: So, instantiate a DocAppDelegate object in the MainMenu.xib instead. The File's Owner in t

Re: applicationShouldTerminateAfterLastWindowClosed Document-based Project Help?

2010-03-23 Thread Bill Hernandez
ny people had read the posts, but no replies were forthcoming. Sometimes it got pretty discouraging, and a couple of days ago I found out about this forum, and this was my first post. Thank You very much for taking the time to provide your insights and help... Bill Hernandez Plano, Texas http:

Tooltips over buttons ?

2010-03-24 Thread Bill Hernandez
of a recent one. Thanks for any help... Bill Hernandez Plano, Texas___ 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 cocoa-dev-admins(at)lists.apple.com H

Re: Tooltips over buttons ?

2010-03-25 Thread Bill Hernandez
On Mar 24, 2010, at 11:53 PM, Jerry Krinock wrote: > On 2010 Mar 24, at 21:10, Bill Hernandez wrote: > >> I've looked for a couple of hours trying to find a simple example on how to >> implement tooltips over three graphic buttons. > >> Most of the IB info I fo

Re: Best book for learning Objective c and cocoa

2010-03-31 Thread Bill Hernandez
k because Bill Cheeseman is in fact so gifted at writing, and explains things so well, this is going to be a really great book. I am very excited to have found it, and if you hadn't asked the question, I would have not made the trip to Nerdbooks, and would have missed this book. Boy, talk a

NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
I am calling a method that I pass a phone number string "1234567890" and should return "(123) 456-7890" but sure enough, that is not what is happening... Any Ideas ? Bil Hernandez Plano, Texas I created a simple demo below : $ clang_gen ---> shows : ** BUILD SUCCEEDED ** Build and Analyze sh

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
x27;-'"]; NSLog(@"[4626] phoneNumber = %@", phoneNumber); } // +-+-+-+-+-+-+-+-+ I tried changing the format to @"'('###')' ###'-'" but the results

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
every time I think I am making progress I realize it is going to take a long time... Thanks for trying to help... Bill Hernandez Plano, Texas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
: -- From what I can see it should work out or the box ??? NSNumberFormatterBehavior10_0 The number-formatter behavior as it existed prior to Mac OS X v10.4. Available in Mac OS X v10.4 and later. Bill Hernandez Plano, Texas Here's the rest... NSNumberFormatterBehaviorDefault The number-

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
ert dates, and that went very smooth. Used almost identical format functions except using dates, instead of numbers, and they worked as expected... Puzzled ? Bill Hernandez Plano, Texas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
NSString *theString = (NSString *)[numberFormatter stringFromNumber:theNum]; NSLog(@"[4625] theString = %@", theString); return theString; // +-+-+-+-+-+-----+-----+-+

Re: NSNumberFormatter not working for me ? [SOLVED]

2010-04-13 Thread Bill Hernandez
eanup, convert middle names to capitalized middle initials with a period on the end, convert state names to short state initials, etc. In this case the formatter strips out everything except digits If anybody is interested in these formatter methods, I can post them. Thanks again, Bill Hern

Re: NSNumberFormatter not working for me ?

2010-04-13 Thread Bill Hernandez
NSLog(@"[4625] theString = %@", theString); return theString; // +-+-+-+-+-+-+-+-+ } I came up with a better work-aroundthat I posted to the forum. Take a look at it, it really works very well, and is not limited to phone

Re: NSNumberFormatter not working for me ?

2010-04-14 Thread Bill Hernandez
l the junk non-digits have been stripped out... Bill Hernandez Plano, Texas I created a simple NSTextView that the output gets sent to: IBOutlet NSTextView *mainTextView; CALLED : NSString *phoneNumber; phoneNumber = [BHUtility bhFormatNumberString:strippedNumber withFormat:format]; [47

Re: NSNumberFormatter not working for me ?

2010-04-14 Thread Bill Hernandez
On Apr 14, 2010, at 5:25 PM, Greg Guerin wrote: > Your code formats strings (more specifically, characters in strings). It > does not format numbers, as such. This is the work-around that I did because I could not make do with NSNumberFormatter. > By "number" I mean a binary numeric value (fl

Re: NSNumberFormatter not working for me ?

2010-04-15 Thread Bill Hernandez
On Apr 15, 2010, at 12:14 PM, Murat Konar wrote: > On Apr 14, 2010, at 8:21 PM, Bill Hernandez wrote: > >> The point is that NSNumberFormatter appears to me missing some flexibility >> in dealing with other than its own set of formatting converters, whatever >> the

Re: NSNumberFormatter not working for me ?

2010-04-15 Thread Bill Hernandez
to figure this out, because I am used to number2string formatters that handle currency, as well as custom formats of all types. Since I am learning the Cocoa Framework, I prefer to use what is available, but I also love and thrive on work-arounds... Thanks for clarifying and confirming my unde

Re: Avoid drawing in half pixel

2010-05-06 Thread Bill Hernandez
ual post : http://discussions.apple.com/thread.jspa?threadID=2421615&tstart=0 or you can download the project at : http://www.journey-of-flight.com Topic: Cocoa - Flexibility of Working with Views Shows how to create Cocoa - Objective C window views, and how to dynamically dis

Re: Avoid drawing in half pixel

2010-05-06 Thread Bill Hernandez
On May 6, 2010, at 9:00 AM, Bill Hernandez wrote: > // > +-+-+-+-+-+-+-+-+ > // DEFINE AND INITIALIZE MAIN RECT VARIABLES > // > +-+-+-+-+-+-+-+-+ >

Re: NSBox sizeToFit problem

2010-05-06 Thread Bill Hernandez
. I ran into the same problem the other day and could not get it to work as I had hoped, so I gave up and did something different. I didn't reply earlier because I didn't have a solution, I just figured it was me. I thought "when I get time I'll have to try again...&qu

Re: NSBox sizeToFit problem

2010-05-06 Thread Bill Hernandez
On May 6, 2010, at 10:34 AM, Ingvar Nedrebo wrote: > But when trying that, I discovered that invoking sizeToFit twice in a row > does fit the box around its contents without clipping, but tightly -- i.e., > without any margins. I tried various permutations of sizeToFit and > setContentViewMarg

NSPopupButtons work, but not in hierarchical mode, what am I missing here ?

2010-05-07 Thread Bill Hernandez
pup buttons work great, the Action Methods trigger correctly, and the window is redrawn with the correct number of rows and columns. If you get a chance to look at it, the project download is at : http://www.journey-of-flight.com/bh_xcode/how-to/0150_Drawing_in_Views/index.php TIA, Bill Hernan

Re: NSPopupButtons work, but not in hierarchical mode, what am I missing here ?

2010-05-07 Thread Bill Hernandez
I think I am having the same problem as : Submenus - What am I not understanding? I was hoping that someone might see what I am trying to do and perhaps offer some ideas on a work-around, the ideas I've come up with are not pretty... Thanks again, Bill Hernandez

Re: How do you set the text in an NSTextView?

2010-05-07 Thread Bill Hernandez
f, I have been trying to document what I've learned : http://www.journey-of-flight.com/bh_xcode/how-to/0010_IB_Outlets_and_Actions/IB_Outlets_and_Actions.php Best, Bill Hernandez Plano, Texas On May 7, 2010, at 9:33 AM, G S wrote: > Hi all. I have a couple of tabs on my window, each o

Re: How do you set the text in an NSTextView?

2010-05-07 Thread Bill Hernandez
{getter, setter} = {string, setString} [textView setString:@"Welcome"]; NSString *myString = [textView string]; but I noticed I had used this at one point, and thought it was acceptable ? [textView insertText:myString]; Thank you so much

Re: NSPopupButtons work, but not in hierarchical mode, what am I missing here ?

2010-05-07 Thread Bill Hernandez
n the learning process. I love this list Thank You.... Bill Hernandez Plano, Texas On May 7, 2010, at 11:50 AM, Gary L. Wade wrote: > Try a different UI approach. > > One thing to consider is using an NSBrowser if you have lots of upper-level > options and a good number of sub

Good Resources ?

2010-05-07 Thread Bill Hernandez
http://www.journey-of-flight.com/bh_xcode/common/cocoa_programming_resources.php TIA, Bill Hernandez Plano, Texas___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

More general question related to : How do you set the text in an NSTextView?

2010-05-09 Thread Bill Hernandez
This is a follow-up question of a more general nature related to : Re: How do you set the text in an NSTextView? On May 7, 2010, at 11:49 AM, Douglas Davidson wrote: > On May 7, 2010, at 9:41 AM, Bill Hernandez wrote: > >> [textView insertText:myString]; > > You

Re: More general question related to : How do you set the text in an NSTextView?

2010-05-09 Thread Bill Hernandez
On May 9, 2010, at 9:46 AM, Bill Hernandez wrote: > and once the help window became available, up the Tasks section. should have been : and once the help window became available, open the Tasks section. ___ Cocoa-dev mailing list (Cocoa-

TUTORIAL: Generating Unique ID Strings

2010-05-14 Thread Bill Hernandez
now. Hope this is useful Bill Hernandez Plano, Texas ___ 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 cocoa-dev-admins(at)lists.apple.com Help/U

Re: TUTORIAL: Generating Unique ID Strings

2010-05-14 Thread Bill Hernandez
Saw some of your work on your website... (and it rocks) Date: May 13, 2010 12:58:14 PM CDT To: Bill Hernandez Hey Bill, I just wanted to reach out and thank you for all of your absolutely fantastic Xcode tutorials with relation to Obj-C and Interface Builder. I had been a

Re: TUTORIAL: Generating Unique ID Strings

2010-05-14 Thread Bill Hernandez
ia Apache on my OS X Server, and finally gave up and I am using something I wrote temporarily. I have heard good things about GIT, and really need to see how that would work. More importantly how might be a good way to setup my workflow to take advantage of GIT. Thanks

Re: TUTORIAL: Generating Unique ID Strings

2010-05-14 Thread Bill Hernandez
t with a passion because it's both poorly > designed and incredibly overused by people trying to be cute. So it conveys > sort of the same effect as if you were using animated GIFs of sparkly > rainbows in the background of your site :) Thanks for the feedback ! Bill Hernandez

SETUP : Regular Expressions - Easy Setup for RegexKitLite

2010-05-15 Thread Bill Hernandez
that make life much easier. Hope some of this is helpful. Best Regards, Bill Hernandez Plano, Texas___ 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

Re: SETUP : Regular Expressions - Easy Setup for RegexKitLite

2010-05-15 Thread Bill Hernandez
d your comments to the notes on the page, and took a couple of additional screen captures that shows what you shared. Correction made : http://www.journey-of-flight.com/bh_xcode/common/regex_kit_lite/regex_kit_lite_install.php Under : Some Feedback Best Regards,

TIPS : Using Add2Project to organize your projects more effectively.

2010-05-16 Thread Bill Hernandez
://www.journey-of-flight.com/bh_xcode/how-to/0016_Add2Project/index.php I also added quite a few items to the resources link at : http://www.journey-of-flight.com/bh_xcode/common/cocoa_programming_resources.php if you see any that I should add, please let me know. Hope this is useful Bill Hernandez Plano

Re: Regarding MVC design pattern

2010-05-17 Thread Bill Hernandez
oadingResources/LoadingResources.pdf Best Regards, Bill Hernandez Plano, Texas___ 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 cocoa-dev-admins(at)lists.

TIPS : Printing Apple Docs Selectively

2010-05-17 Thread Bill Hernandez
seful Bill Hernandez Plano, Texas ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update

Re: Blog post announcements

2010-05-18 Thread Bill Hernandez
so sorry, I won't be making any further posts. Thank You for making me aware of the problem. Sincerely, Bill Hernandez Plano, Texas___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the