Warnings related to alternates during compilation

RESOLVED FIXED

Status

Camino Graveyard
General
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Smokey Ardisson (offline for a while; not following bugs - do not email), Unassigned)

Tracking

Trunk
PowerPC
Mac OS X

Details

Now that we've turned off useless warnings, I'm seeing some warnings about alternates during compilation of a standard PPC build (I don't have a full recompile's log, so there may be more):

/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/application/MainController.mm: In function `void -[MainController openMenuBookmark:](MainController*, objc_selector*, objc_object*)':
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/application/MainController.mm:1233: warning: cannot find method `-isAlternate'; return type `id' assumed

/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkManager.mm: In function `NSMenuItem* -[BookmarkManager shiftAlternateMenuItemWithTitle:action:andTarget:](BookmarkManager*, objc_selector*, NSString*, objc_selector*, objc_object*)':
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkManager.mm:882: warning: `NSMenuItem' may not respond to `-setAlternate:'
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkManager.mm:882: warning: cannot find method `-setAlternate:'; return type `id' assumed

/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkMenu.mm: In function `void -[BookmarkMenu appendBookmarkItem:buildingSubmenus:](BookmarkMenu*, objc_selector*, BookmarkItem*, char)':
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkMenu.mm:208: warning: `NSMenuItem' may not respond to `-setAlternate:'
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkMenu.mm:208: warning: cannot find method `-setAlternate:'; return type `id' assumed
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkMenu.mm:214: warning: `NSMenuItem' may not respond to `-setAlternate:'
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkMenu.mm:214: warning: cannot find method `-setAlternate:'; return type `id' assumed

/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkViewController.mm: In function `void -[BookmarkViewController openBookmarkInNewTab:](BookmarkViewController*, objc_selector*, objc_object*)':
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkViewController.mm:539: warning: cannot find method `-isAlternate'; return type `id' assumed
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkViewController.mm: In function `void -[BookmarkViewController openBookmarkInNewWindow:](BookmarkViewController*, objc_selector*, objc_object*)':
/Users/smokey/Camino/dev/trunk/CaminoTrunk/camino/src/bookmarks/BookmarkViewController.mm:609: warning: cannot find method `-isAlternate'; return type `id' assumed
Version: unspecified → Trunk

Comment 1

11 years ago
(In reply to comment #0)
> warning: `NSMenuItem' may not respond to `-setAlternate:'

What SDK are you using?  isAlternate and setAlternate are 10.3+.  (Some of the warnings are just because the object is an uncast id, but you shouldn't be seeing warnings on NSMenuItems.)
Standard PPC build: Xcode 1.5, 10.2.8 SDK

Comment 3

11 years ago
Yeah, AFAIK this is a "we only support 10.3+, but we're still building with 10.2 SDK" problem.
Depends on: 359218

Comment 4

11 years ago
Fixed by the change to the 10.3 SDK (Bug 359218).
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.