• 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: Drag and Drop weirdness? [Resolved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop weirdness? [Resolved]


  • Subject: Re: Drag and Drop weirdness? [Resolved]
  • From: Jerry LeVan <email@hidden>
  • Date: Mon, 25 Nov 2002 20:43:03 -0500

Ok,

I figured it out... I have to flush the window after doing the drawing...
replaced:
draggingEntered method.
...
[self lockFocus];
NSRect theFrame = [self bounds];
[[NSColor keyboardFocusIndicatorColor] set];
NSBezierPath *thePath = [NSBezierPath bezierPathWithRect:theFrame];
[thePath setLineWidth:5];
[thePath stroke];
[self unLockFocus];
NSLog(@"Finished outline");

With
draggingEntered method.
...
[self lockFocus];
NSRect theFrame = [self bounds];
[[NSColor keyboardFocusIndicatorColor] set];
NSBezierPath *thePath = [NSBezierPath bezierPathWithRect:theFrame];
[thePath setLineWidth:5];
[thePath stroke];
[[NSApp mainWindow] flushWindow];
[self unLockFocus];
NSLog(@"Finished outline");

--Jerry
_______________________________________________
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: carbon and cocoa menus
  • Next by Date: Re: DO doesn't like my objects
  • Previous by thread: [ANN] Tabularity, a data browser for OS X
  • Next by thread: Help with files??
  • Index(es):
    • Date
    • Thread