• 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
popup menu code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

popup menu code


  • Subject: popup menu code
  • From: Luke Sands <email@hidden>
  • Date: Mon, 23 Jul 2001 20:33:10 +0000

Hi everyone,
What is wrong with this popup menu code or is there a better way to do
it? I get the following errors repeated:
illegal expression, found "unknown"
illegal external declaration, missing ';' after 'isEqualTostring'

Code:

NSString *tmpTitle;
NSString *tmpURL;

tmpTitle =[searchPopup titleOfSelectedItem];
if ([tmpTitle isEqualToString:@"Google" ])
{
NSLog(@"Google Selected");
tmpURL = @"http://www.google.com/search?q=";;
}
if ([tmpTitle isEqualToString:@"Apple Developers Site" ])
{
NSLog(@"Apple Selected");
tmpURL = @"http://developer.apple.com/cgi-bin/search.pl?q=";;
}
if ([tmpTitle isEqualToString:@"Cocoa-Dev List" ])
{
NSLog(@"Cocoa-Dev Selected");
tmpURL =
@"http://cocoa.mamasam.com/search/results.php?words=";;
}


Luke
_______________________________________________
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.

  • Prev by Date: Add dynamically tool tip in NSMatrix
  • Previous by thread: Add dynamically tool tip in NSMatrix
  • Index(es):
    • Date
    • Thread