• 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: Display a "Red frame" on the screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display a "Red frame" on the screen


  • Subject: Re: Display a "Red frame" on the screen
  • From: David Duncan <email@hidden>
  • Date: Fri, 8 Apr 2011 08:37:13 -0700

On Apr 8, 2011, at 3:39 AM, eveningnick eveningnick wrote:

> Hello
> I have two monitors attached to the computer, and when i click in
> "System Preferences/Displays Preferences" on the "display" image
> (Display arrangement tab), the screen of the clicked "scematic
> monitor's image" monitor is being surrounded by a red frame.
>
> How could i do something like this from my application? I don't need
> the red frame around the whole screen, but i would like to have some
> area on the screen. Is it possible to do using some kind of API?


You can use NSScreen to get a list of available screens and then just create an NSWindow on whatever screens you want. You probably want a borderless window (which is a flag you can pass when you create the window) so that the window doesn't have content by default.
--
David Duncan

_______________________________________________

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: Display a "Red frame" on the screen
      • From: eveningnick eveningnick <email@hidden>
References: 
 >Display a "Red frame" on the screen (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.
  • Next by Date: Re: Class UITableViewCellContentView is implemented in both <here> and <there>. One of the two will be used. Which one is undefined.
  • Previous by thread: Display a "Red frame" on the screen
  • Next by thread: Re: Display a "Red frame" on the screen
  • Index(es):
    • Date
    • Thread