cocoa - DrawRect on the iPhone vs. the Mac -


I am an experienced iPhone Dev working on my first Mac app. The one thing that is actually throwing me is the difference between the UIVVI and NSV. It seems that I can not set the background color of an NSView through the interface builder because I can do it with a UIView. It also seems like I can not do this by sending a setbackgram caller: this message. All the examples I have seen overriding direct: Is it really the only way to do this in the sub-section of NSW? What is the conceptual difference here, and why is it like this? Note: I'm just trying to set background color to default gray Re: Alex's Answer:

Not only this, it is big; Or rather; ... it is not not that it is large, the fact of the matter is that UIKit simple is much less generic than the UIView NSView; The general method is that Apple is pushing for applications containing content on the iPhone, using open or core animation, by exiled to UIView, and for large, simple container accessories. In this context, setbackgram color: useful.

On the Mac, on the other hand, NSV is a high general interface element, and for most uses, setbackgram color: only plain unnecessary will be. 9 times from 10 times, if you're on the Mac and changing the background color then this is either because you are preparing to create your own picture of user interface elements, or are you doing something that is not known by EHG is likely to.

In short:

There is no way other than sub-closing. (NSView is designed for subclassing, UIView is designed for drop-in-end-use.)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -