• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
LSUIElement?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: LSUIElement?!
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: Sample Code
  • Next by Date: RE: Objective-C Question
  • Previous by thread: NSPrintPanel Crashing (?)
  • Next by thread: Re: LSUIElement?!
  • Index(es):
    • Date
    • Thread