• 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: Resize box not letting clicks through
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resize box not letting clicks through


  • Subject: Re: Resize box not letting clicks through
  • From: email@hidden
  • Date: Sat, 16 Feb 2008 14:35:43 +0100

You could try something like this:

- (NSSize)windowWillResize:(NSWindow *)window toSize:(NSSize)proposedFrameSize
{
	if ( certainMode ) {
               // assume click, perform selector
               return [window frame].size;
        }

	return proposedFrameSize;
}

On Feb 16, 2008 12:46 PM, Trygve Inda <email@hidden> wrote:
> I have a window that is resizeable, but in a certain mode needs to be not
> resizeable. When making it not resizeable. I am able to hide the resize
> control lines in the lower right. I also set the max size so that the window
> can't be resized by the user.
>
> The issue is the area where the resize control used to be shown is not
> letting clicks pass through to a button as clicks in the lower right half of
> the button (where the resize lines were) are not getting through.
>
> Apple's docs say:
>
> An NSWindow object's style is set when the object is initialized. Once set,
> it can't be changed.
>
> So I can't actually make the window not resizeable to let clicks pass
> through this area. Is there a way to capture these clicks, and let the
> through to my button?
>
> Thanks,
>
> Trygve
>
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: Resize box not letting clicks through
      • From: Trygve Inda <email@hidden>
References: 
 >Resize box not letting clicks through (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: [Foo new] vs [[Foo alloc] init]:
  • Next by Date: Re: [Foo new] vs [[Foo alloc] init]:
  • Previous by thread: Resize box not letting clicks through
  • Next by thread: Re: Resize box not letting clicks through
  • Index(es):
    • Date
    • Thread