Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa beginner question



On Wednesday, November 28, 2001, at 06:44 PM, Hussein Yahia wrote:

Hello,

I'm new to cocoa programming, so apologize for the following question:

I create a simple cocoa app with PB. Using IB, I connect the "open" menu to the action in FirstResponder : "openDocument". When I test it under IB, if I choose "Open" in the menu, everything goes as expected : it display s a window for opening a file. But if I compile the app in PB,
the "open" menu remains dimmed.

How to solve that ?
This is hard to answer without seeing it... In your target settings in PB is your app document based or not?
Is it defined as editor or viewer?

Did you have to connect "open" to openDocument: yourself?

Perhaps try starting with a fresh project using "Cocoa application" or "Cocoa Document based Application" in the new project window.

Andre.


References: 
 >Cocoa beginner question (From: Hussein Yahia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.