• 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
Borderless window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Borderless window


  • Subject: Borderless window
  • From: Richard Dodd <email@hidden>
  • Date: Tue, 5 Aug 2003 21:25:08 -0500

I have a fullscreen window that I am creating by subclassing NSWindow
and setting it's stylemask to NSBorderlessWindowMask. I have it
receiving key events and all. What I am having a little trouble with is
a custom view in the window. I am using tracking rects to have some
widgets perform a rollover. If the window is a 'normal' window, the
window is created fine. The minute I set it to a NSBorderlessWindowMask
style I get the following in the console:

2003-08-05 20:56:05.804 Space Wacky[1720] *** Assertion failure in
-[SW_GameWindow _discardTrackingRect:], AppKit.subproj/NSWindow.m:2456
2003-08-05 20:56:05.817 Space Wacky[1720] Window: discardTrackingRect
called before adding rect

I fiqure it has something to do with borderless window not excepting
mouse moved events. I have use [window setAcceptsMouseMovedEvents:YES]
to no avail. I've over-ridden -(BOOL)acceptsMouseMovedEvents to return
YES.

Am I off-base here and the problem is something else? Or am not just
doing it the right way?

Richard Dodd
-------------------------------------
email: email@hidden
_______________________________________________
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: NSOutlineView won't act as drag source
  • Next by Date: Re: Validate a Password
  • Previous by thread: persistent graphic (NSBezierPath) objects
  • Next by thread: Which String Encoding should we use/suggest
  • Index(es):
    • Date
    • Thread