Re: Accessing Variables from Multiple NIBs

2010-01-16 Thread Jon Buys
Well, before this goes any further, I'm going to go ahead and answer my own question here. The problem is that in the code below, I'm actually instantiating two AppController objects, one in each NIB. So, one AppController doesn't have any idea about the other AppController, and can't get to i

NSTextView Drag and Drop

2010-01-30 Thread Jon Buys
Hello, What is the best way to get access to the file that is dropped on an NSTextView. I don't want to embed the file in the view, but I'd like to copy the file somewhere else and add arbitrary text in its place. I'm thinking I should be looking at NSTextAttachment, but I'm not sure if I'm b

WebView Loading Images from Local Filesystem

2010-01-31 Thread Jon Buys
Hello, I have a WebView where I am loading html like this: NSString *baseContextFile = [[NSBundle mainBundle] pathForResource:@"base" ofType:@"html"];

Re: Learning How to Program in Objective-C

2008-07-11 Thread Jon Buys
I'm in the same boat. The best thing I can recommend is to buy the Cocoa Programming book by Hillegass: http://www.amazon.com/exec/obidos/ASIN/0321503619/bignerdranch-20 I'm halfway through, working on the chapter 18 challenge. Between that book, Apple's developer web site, and this mailling lis

Hillegass, Third Edition, Chapter 18

2008-07-14 Thread Jon Buys
Hello All, I'm working through the challenge app at the end of Chapter 18 of Cocoa Programming, Third Edition. I've got my app to the point where it can draw ovals, but each time I click in the window it seems like the view redraws itself. I'm sure that this is a very simple question with a very

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Jon Buys
On Tue, Jul 15, 2008 at 3:00 AM, Antonio Nunes <[EMAIL PROTECTED]> wrote: > On 15 Jul 2008, at 04:53, Jon Buys wrote: > > I'm working through the challenge app at the end of Chapter 18 of Cocoa >> Programming, Third Edition. I've got my app to the point where it

Re: Hillegass, Third Edition, Chapter 18

2008-07-16 Thread Jon Buys
Thanks for your help everyone! I wound up taking a look at someone else's code that is working, and basing my code off their example. (Thanks Aron!) I don't have it working just yet, but I've got a little more reading to do on NSMutableArray. My app is not adding the NSBezierPath object to my ar

Core Data Form

2008-09-04 Thread Jon Buys
Hello, I have a problem with my app that is most likely very simple for someone with experience. I have a core data based application that I would like to be able to add objects to via a sheet that drops down when the user clicks the + button (or presses Command-N). On the sheet are two

Re: Core Data Form

2008-09-05 Thread Jon Buys
> NSManagedObject *hostObj = [NSEntityDescription > insertNewObjectForEntityForName:@"Host" inManagedObjectContext:[[NSApp > delegate] managedObjectContext]]; > Ahhh... there's what I was missing: the [NSApp delegate] part of declaring a new entity. I'm not at my Mac right now, but I'll give tha

Re: While we're on the subject of DMG's for software distribution...

2008-09-09 Thread Jon Buys
> I must agree with this paragraph whole-heartedly - my single favorite thing > about OS X is the way so many applications can be installed by dragging a > simple icon somewhere, and can be uninstalled by dragging that same icon to > the Trash. No need to worry about an installer dumping crap where