• 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: Problem with NSDatePicker in popover
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSDatePicker in popover


  • Subject: Re: Problem with NSDatePicker in popover
  • From: Graham Cox <email@hidden>
  • Date: Sun, 24 Feb 2013 14:01:12 +1100

On 24/02/2013, at 8:04 AM, William J. Cheeseman <email@hidden> wrote:

> When a popover is still anchored to its parent window, the popover view's window is the parent window -- which makes sense, when you think about it, because a popover is just another view in the main window.

Are you sure about that? I'm not... it would make sense to me if the popover window was a separate window, a child of the original window. That's how it acts and behaves. For example if the popover falls outside the bounds of the original view or window, it has its own shadow etc, and is unclipped by the original window. The internal pointers to the view's window might return some other window of course, but I don't think so - I have tried for example, to attach a sheet to a popover by asking for the view's -window as the sheet's parent and it attached the sheet to the popover. Turned out to be a bad idea, but it worked, sort of.


> When the popover is detached, the new, separate popover view's window is the detached popover window.


Do you need to call -makeKeyAndOrderFront: on the detached window?

--Graham


_______________________________________________

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: Problem with NSDatePicker in popover
      • From: "William J. Cheeseman" <email@hidden>
References: 
 >Problem with NSDatePicker in popover (From: "William J. Cheeseman" <email@hidden>)
 >Re: Problem with NSDatePicker in popover (From: "William J. Cheeseman" <email@hidden>)
 >Re: Problem with NSDatePicker in popover (From: "William J. Cheeseman" <email@hidden>)
 >Re: Problem with NSDatePicker in popover (From: "William J. Cheeseman" <email@hidden>)

  • Prev by Date: Re: NSSavePanel problem
  • Next by Date: Re: NSSavePanel problem
  • Previous by thread: Re: Problem with NSDatePicker in popover
  • Next by thread: Re: Problem with NSDatePicker in popover
  • Index(es):
    • Date
    • Thread