Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4074430
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:10:05+00:00 2026-05-20T17:10:05+00:00

I think my problem can best be described in a video: http://cl.ly/5Iou Basically, I’m

  • 0

I think my problem can best be described in a video: http://cl.ly/5Iou

Basically, I’m creating a tracking area in my window like this:

NSTrackingArea *area = [[NSTrackingArea alloc] initWithRect:[self frame] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveAlways owner:self userInfo:nil];
[self addTrackingArea:area];
[area release];

Then I’ve implemented:

-(void)mouseEntered:(NSEvent *)event {
    [self toggleDetail];
}
-(void)mouseExited:(NSEvent *)event {
    [self toggleDetail];
}

And in awakeFromNib I put this:

[attachedWindow setIgnoresMouseEvents:YES];

toggleDetail looks somewhat similar to this: (the popup is a MAAttachedWindow)

- (void)toggleDetail {
    if (!attachedWindow) {
        NSPoint buttonPoint = NSMakePoint(NSMidX([conditionImage frame]),
                                          NSMidY([conditionImage frame]));
        attachedWindow = [[MAAttachedWindow alloc] initWithView:view 
                                                attachedToPoint:buttonPoint 
                                                       inWindow:[self window] 
                                                         onSide:12
                                                     atDistance:65.0];
        //irrelevant window setup here
        [[self window] addChildWindow:attachedWindow ordered:NSWindowAbove];
    } 
    else {
        [[self window] removeChildWindow:attachedWindow];
        [attachedWindow orderOut:self];
        [attachedWindow release];
        attachedWindow = nil;
    }
}

So, as you can see in the video, the “pulsing” doesn’t happen if I move my mouse over the window away from the window, then move it over the popup window. However, if I move my mouse over the general vicinity where the popup window will appear, then move my mouse into the window, it pulses. It almost seems like the window doesn’t have time to register that it shouldn’t receive mouse events. Any ideas? I’ve reached my wits ends trying to work around this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:10:06+00:00Added an answer on May 20, 2026 at 5:10 pm

    Wow, that was simple. I just figured it out. I was calling this:

    [attachedWindow setIgnoresMouseEvents:YES];
    

    before the window had initialized. Thus it didn’t register for some reason. So, I moved it here:

    //in toggleDetail
    attachedWindow = [[MAAttachedWindow alloc] initWithView:view 
                                                attachedToPoint:buttonPoint 
                                                       inWindow:[self window] 
                                                         onSide:12
                                                     atDistance:65.0];
    [attachedWindow setIgnoresMouseEvents:YES]; //HERE it works!
    [[self window] addChildWindow:attachedWindow ordered:NSWindowAbove];
    

    So, right after it’s initialized, but right before it’s displayed. Finally it’s working! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think that this problem can be sorted using reflection (a technology which I'm
i have a problem that i can't solve ! (sqlite3, but i think it
I've got a pretty minor problem that I think can be resolved by re-thinking
I'm facing what I think is a simple problem with Hibernate, but can't solve
I've got a strange problem with SQL Server 2000, and I just can't think
I'm having a problem with Fluent NHibernate mappings, I think, and can't quite get
I'm sure there are different approaches to this problem, and I can think of
Hello! My problem can be described the following way: I have some data which
The best problem description is given by looking at http://rubular.com/r/9zDHFh0gGc . Why is sed
I think my question is best described as an example. Let's say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.