| Sign In/My Account | View Cart |
| Article: |
BYOB: Build Your Own Browser, Part 3 | |
| Subject: | Not so good... | |
| Date: | 2004-06-07 07:18:30 | |
| From: | johnts | |
|
Is it just me or is this article a little confusing? The whole bit about the ignoreContent was sort of thrown in - the ignoreContent member variable would clash with the static variable.. I had to comment out a bunch of stuff in the awakeFromNib method and the apply: method just to get it to compile. I guess that some of that was put in there so we could finish it, but leaving it halfway done doesn't help! I had to add a couple of missing #imports too.
|
||
Showing messages 1 through 8 of 8.
NSString* iContent = [ignoreContent stringValue];
[defaults setObject:iContent forKey:@"ignoreContent"];
[md setIgnoreContent:iContent];
IBOutlet id ignoreContent;
NSString* iContent = [ignoreContent stringValue];
[defaults setObject:iContent forKey:@"ignoreContent"];
[md setIgnoreContent:iContent];
[ignoreContent setStringValue:[md getIgnoreContent]];
what did you need to comment out in awakefromnib to get it working ? this error seems strange since the code comes from a perfectly working version that I built. Not having an import statement for MyDocument.h would force the compile to fail, but that is in the code in the article. Can you post the errors that you are getting ?
ignoreContent wasn't just as you say "thrown in". it was a way to demonstrate the policy delegate, within the confines of an article of resonable length. as for the issue with the two variables named "ignoreContent", they are in two different objects; one is in Controller the other is in MyDocument so there will be no collision problems.
andrew