Re: Display an Alert Sheet at a Specified Screen Position
Re: Display an Alert Sheet at a Specified Screen Position
- Subject: Re: Display an Alert Sheet at a Specified Screen Position
- From: Mike Abdullah <email@hidden>
- Date: Wed, 25 Mar 2015 23:10:03 +0000
Are you perhaps looking for this API? https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSWindowDelegate_Protocol/index.html#//apple_ref/occ/intfm/NSWindowDelegate/window:willPositionSheet:usingRect:
> On 25 Mar 2015, at 22:06, Dave <email@hidden> wrote:
>
> Hi All,
>
> I’d like to be able to display and Model Alert Sheet at an arbitrary screen location, is this possible?
>
> If not, if I created a borderless window with a transparent content area and positioned it where I wanted it, could I then display the Sheet using this window using [alert beginSheetModalForWindow:[searchField window] modalDelegate:self didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:) contextInfo:nil]; ?
>
> I’d like to be able to display and Model Alert Sheet at an arbitrary screen location, is this possible?
>
> Thanks in advance.
> All the Best
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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