• 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
Java-Cocoa drawing -- help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java-Cocoa drawing -- help!


  • Subject: Java-Cocoa drawing -- help!
  • From: James Burton <email@hidden>
  • Date: Mon, 12 Apr 2004 08:13:06 -0600

In IB, I have created a window with a NSview, and have called it myview:

public NSView myview;

Now, how do I draw a simple rectangle using NSRect to this NSview?

I hoped that something like...

nr = new NSrect(0,0,40,40);
myview.drawRect(nr);

...would do it, but no. It compiles without error or warning -- yet
does nothing. What is the proper way to draw to a NSView?

Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Java-Cocoa drawing -- help!
      • From: Moray Taylor <email@hidden>
  • Prev by Date: Re: Communicating with NSTableView delegate
  • Next by Date: Re: Communicating with NSTableView delegate
  • Previous by thread: [ANN] AMPreferencePane classes
  • Next by thread: Re: Java-Cocoa drawing -- help!
  • Index(es):
    • Date
    • Thread