Is the view being instantiated in code or as a view in a .xib?

For the former case you would initialize the view by calling -initWithFrame: in 
your code. For the latter case the OS will call -initWithCoder: as part of xib 
loading and the view hierarchy creation. 

Sent from my iPhone

> On Dec 23, 2014, at 11:28 PM, N!K <[email protected]> wrote:
> 
> initWithFrame is not accessed when my Xcode 6.1.1 new project runs. OSX, not 
> IOS. 
> It was copied and pasted from another project that works correctly, 
> containing a Bezier plot. Consequently, the plot does not show up in the view 
> when the project Runs.
> 
> But drawRect properly runs, including
> [NSBezierPath strokeRect: bounds];
> This puts a colored frame around the view.
> 
> The view is what came when the project was initiated. On the left side, 
> MainMenu.xib shows Placeholders, Objects, and then the window name. Below it 
> is the view name, same as file name set in Identity Inspector>Class. Clicking 
> on the view name makes the view tan colored.
> I couldn't find any help in Google, so please, what can I do to get this 
> running correctly?
> 
> Nick
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/xcode-users/punster%40mac.com
> 
> This email sent to [email protected]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to