• 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
Re: initWithFrame fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithFrame fails


  • Subject: Re: initWithFrame fails
  • From: Steve Christensen <email@hidden>
  • Date: Tue, 23 Dec 2014 23:39:39 -0800

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@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: initWithFrame fails
      • From: Roland King <email@hidden>
References: 
 >initWithFrame fails (From: N!K <email@hidden>)

  • Prev by Date: initWithFrame fails
  • Next by Date: Re: initWithFrame fails
  • Previous by thread: initWithFrame fails
  • Next by thread: Re: initWithFrame fails
  • Index(es):
    • Date
    • Thread