• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: email@hidden
  • Date: Tue, 18 Jun 2002 18:50:10 +0100 (BST)

arh! that will be the problem. didn't spot that...

Thanks

On Tuesday, June 18, 2002, at 05:46 pm, John C. Randolph wrote:


On Tuesday, June 18, 2002, at 08:18 AM, email@hidden wrote:

I'm having trouble creating an image of a view for dragging. First I create an image of the view using this code:

NSBitmapImageRep *myBitmap = [[NSBitmapImageRep alloc]
initWithFocusedViewRect:[myView bounds]];

This code, I believe is correct but it doesn't seem to work. I have two outlets:
-myView
-myImage

then the usual:

[myImage setImage:myBitmap];

I'm I doing this right? Is there a better way to do this? Is there an example of dragging views (i've looked at the image dragging example by Apple which is really helpful for dragging images but I need to drag a view ie. Image & Text at the same time.)

Ideally I need something like the system preferences where you can drag a prefPane to the toolbar.

Thanks in advance for any help.

Did you lock focus on "myView"?

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

  • Prev by Date: Re: [Q] Help system
  • Next by Date: Re: [Q] Help system
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread