Calling methods of an NSApplication subclass
Calling methods of an NSApplication subclass
- Subject: Calling methods of an NSApplication subclass
- From: Ken Tozier <email@hidden>
- Date: Mon, 5 Jul 2004 10:38:15 -0400
I wrote an NSApplication subclass to handle some required
initialization along with accessor methods to fetch some of the
subclass variables. I put NSLog() in each of the subclass variable
initializers and they're initialized correctly, problem is, the
accessors aren't working, all I'm getting are nulls.
Here's how the accessors are defined in my NSApplication subclass:
- (NSDictionary *) userList
{
return [properyDictionary objectForKey: @"user list"];
}
And here's how I'm trying to call them from other classes:
NSDictionary *userList = [NSApp userList];
Also tried coercing to NSApp to MyApp:
NSDictionary *userList = [(MyApp *) NSApp userList];
I did "#include MyApp.h" to make the extra accessors visible in the
other classes but no luck.
Anyone point out where I drove off into the bushes?
Thanks,
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.