• 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: gui without Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gui without Interface Builder


  • Subject: Re: gui without Interface Builder
  • From: email@hidden
  • Date: Mon, 11 Jul 2005 14:30:53 -0700

Thanks! That did it. If I moved the binary into a directory structure that looks like this:

<binary-name>.app/Contents/MacOS/<binary-name>

... it works. So apparently NSApplication needs this "bundle" directory structure. Now I need to understand this bundle stuff, and what the files mean... I guess the NSBundle docs are a good place to start.

Rob


On Jul 11, 2005, at 11:31 AM, Matt Neuburg wrote:

On Sun, 10 Jul 2005 02:07:53 -0700, email@hidden said:

Hi all,

The following code pops up a window with an NSTextView, but the view
won't take keyboard focus/input, so I can't edit the text.  Can
anyone tell me what's wrong?  According to the printfs, the textview
become the firstResponder, and is editable.


Just as a data point, I pasted your code directly into the main.m of a fresh
Cocoa project and it works fine (until you make the mistake of resizing the
window, of course). m.





_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: gui without Interface Builder
      • From: Bob Ippolito <email@hidden>
References: 
 >Re: gui without Interface Builder (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Inserting Special Characters into a String
  • Next by Date: Re: Why does this leak memory?
  • Previous by thread: Re: gui without Interface Builder
  • Next by thread: Re: gui without Interface Builder
  • Index(es):
    • Date
    • Thread