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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:27:18+00:00 2026-05-26T08:27:18+00:00

I have a subclass defined as follows, #import <Cocoa/Cocoa.h> @interface ICMusicBrowserWindowController : NSWindowController {

  • 0

I have a subclass defined as follows,

#import <Cocoa/Cocoa.h>

@interface ICMusicBrowserWindowController : NSWindowController
{

}

I then create an instance of the above subclass as follows

ICMusicBrowserWindowController *musicBrowserWindowController = [[ICMusicBrowserWindowController alloc] initWithWindowNibName:@"Browser"];
[musicBrowserWindowController setDelegate:self];

I try to ask for window from musicBrowserWindowController like so.

[NSApp beginSheet:[musicBrowserWindowController window] 
   modalForWindow:[[self view] window]
    modalDelegate:self 
   didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:) 
      contextInfo:nil];

However when doing so, I get the warning message, window maybe deprecated because receiver type is unknown.

Any suggestions as to what I am doing wrong? I noticed this warning message only appeared in OSX Lion. Thanks.

  • 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-26T08:27:19+00:00Added an answer on May 26, 2026 at 8:27 am

    update: i just put the header of my subClass of NSWindowController into the class where i was using the [instance window]
    and the warning went away… (i had also put in forward declaration @Class of my subclass of NSWindowController into the header of where i was using it) one or both of these fixed the warning… so try that.

    so my previous answer was off i now believe.

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

Sidebar

Related Questions

I have two NSMutableString objects defined in my viewController's (a subclass of UITableViewController) .h
Let's say I have a base class defined as follows: class Form(object): class Meta:
I have a method in a Pygame Sprite subclass, defined as such: def walk(self):
I want to have a function defined in a superclass that returns an instance
I have an NSWindow that I defined in interface builder. I want to make
I have subclassed NSMutableArray as follows: Base Class: @interface MyBaseMutableArray : NSMutableArray { //
I have a custom subclass of UITableView with a protocol defined in it as
I have an NSManagedObject subclass MyClass with a property myProp , which is defined
HI All. I have subclass of UIScrollView. IN this class I have added some
I have a subclass s of UIView. I want to put some buttons and

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.