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 8257517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:13:23+00:00 2026-06-08T02:13:23+00:00

I have a problem with accessory views on NSSavePanel and NSOpenPanel. Sometimes, (very often)

  • 0

I have a problem with accessory views on NSSavePanel and NSOpenPanel.

Sometimes, (very often) when I open one of these panels the accessory view does not work (the view is shown but controls seem disabled).

I’m using this code to show the panel:

[openPanel beginSheetModalForWindow:appWindow completionHandler:openPanelHandler];

This only happens when app-sandbox is enabled.

After much testing I found out that what was happening was that the view was being misplaced (not attached to the panel).

When I open Mission Control and move the mouse pointer over the app windows I noticed that an “invisible” window hilighted and when select it I can take control over the accessory view (all controls work) but it appears detached from the open or save panel as shown on the screenshot.

Screenshot

I tried to create a new app just to test this behavior but was not able to reproduce it, so I suppose that has something to do with my app.

Any hint of what I may be doing wrong?

I don’t want to code everything from scratch just to solve this issue.

Edit

Just a side note, when I close the window, just before the window close the accessory view flashes with the correct values for the controls. It appears that the application does not add the view in time for showing the panel.

Update 1

I subclassed the view that is used as accessory view and noticed that the

- (void)viewWillMoveToSuperview:(NSView *)newSuperview

is called, but

- (void)viewDidMoveToSuperview

never gets called even when the view is shown correctly, is this the normal behavior?

Update 2

I confirmed that - (void)viewDidMoveToSuperview should be called, on the test app both methods are called.

I also noticed a slight difference between my app and the test app. On my app the panel just slides down but on the test app the panel appears to “flip down” (don’t know exactly how describe). The way the panel appears is irrelevant to me, I just noticed that it is not shown the same way.

  • 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-06-08T02:13:25+00:00Added an answer on June 8, 2026 at 2:13 am

    After trying many things I concluded that the problem had to do with ARC (Automatic Reference Count) settings for the project.

    In my case I had enabled ARC on target but not on project, after enabling ARC on project (and dealing with resulting errors and warnings) everything works perfectly now.

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

Sidebar

Related Questions

Problem: I'm writing an Android app, and one of its features requires Open Accessory
I have a very strange problem with a UITableview within a navigation controller on
I've added a text field in one of the accessory views of my table
I have one last problem that is killing me. I am playing around with
So I have a map view in which if I tap on the accessory
In a Rails 3.1 app, one controller needs to have all its views compile
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This
I have problem with repopulating form_upload after validation. Other input fields or selectboxes are
I have problem with show or hide form in Window Form Application. I start

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.