LSUIElement?!
LSUIElement?!
- Subject: LSUIElement?!
- From: David Dauer <email@hidden>
- Date: Mon, 22 Sep 2003 19:52:54 +0200
Hi all,
I'll simply modify the LSUIElement Key in the Info.plist item via button
click. So, what's wrong with my code? I really don't know! (btw, how can i
relauch my app after modifying the entry?)
- (IBAction)removeFromDock:(id)sender
{
NSMutableDictionary *myDict = [[NSBundle mainBundle] infoDictionary];
NSLog(@"%@", [myDict objectForKey:@"LSUIElement"]);
if ([[myDict objectForKey:@"LSUIElement"] intValue] == 0) {
NSLog(@"in dock, now remove");
[myDict setObject:[NSString stringWithString:@"1"] forKey:[NSString
stringWithString:@"LSUIElement"]];
NSLog(@"%@", [myDict objectForKey:@"LSUIElement"]);
} else {
NSLog(@"not in dock, now insert");
[myDict setObject:[NSString stringWithString:@"0"] forKey:[NSString
stringWithString:@"LSUIElement"]];
NSLog(@"%@", [myDict objectForKey:@"LSUIElement"]);
}
Thanks
David
_______________________________________________
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.