• 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
Instantiate custom NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Instantiate custom NSWindow


  • Subject: Instantiate custom NSWindow
  • From: "Jere Gmail" <email@hidden>
  • Date: Mon, 24 Sep 2007 20:10:07 +0200

Well..as you can guess I'm having some problems adapting from C++ to
Cocoa environment.
My problem now is I have a window and had created a custom class for
this window (DataWindow).
Now in the application controller I have this:
#include "DataWindow.h"
so I can instantiate this class.

But if I write this
NSWindow *r=[DataWindow new];
[NSApp beginSheet:r modalForWindow:window modalDelegate:self
didEndSelector:nil contextInfo:NULL];
[NSApp runModalForWindow:r];

all that I obtain is an empty window.
What I'm doing wrong?

--
http://zon7blog.blogspot.com/
And again we fall.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Instantiate custom NSWindow
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: drag and drop images to NSWindow doesn't work
  • Next by Date: Re: drag and drop images to NSWindow doesn't work
  • Previous by thread: Re: drag and drop images to NSWindow doesn't work
  • Next by thread: Re: Instantiate custom NSWindow
  • Index(es):
    • Date
    • Thread