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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:04:26+00:00 2026-05-26T12:04:26+00:00

i’ve didn’t found some examples to create NSPopover dynamically instead using the Interface Builder.

  • 0

i’ve didn’t found some examples to create NSPopover dynamically instead using the Interface Builder.

Following code gives an exception, loaded nib, but no view is set:

NSViewController *controller = [[NSViewController alloc] initWithNibName:@"View"     bundle:nil];
NSPopover *popover = [[NSPopover alloc] init];
[popover setContentSize:NSMakeSize(100.0f, 100.0f)];
[popover setContentViewController:controller];
[popover setAnimates:YES];
[popover showRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSMaxXEdge];
[popover release];
[controller release];

Here is the stack trace:

2011-10-22 12:00:16.804 Test[2020:707] -[NSViewController loadView] loaded the "View" nib    but no view was set.
2011-10-22 12:00:16.807 Test[2020:707] (
0   CoreFoundation                      0x00007fff87e10286 __exceptionPreprocess + 198
1   libobjc.A.dylib                     0x00007fff92f2cd5e objc_exception_throw + 43
2   CoreFoundation                      0x00007fff87e100ba +[NSException   raise:format:arguments:] + 106
3   CoreFoundation                      0x00007fff87e10044 +[NSException raise:format:] + 116
4   AppKit                              0x00007fff90951e21 -[NSViewController loadView] + 336
5   AppKit                              0x00007fff9094da8a -[NSViewController view] + 41
6   AppKit                              0x00007fff91065232 -[NSPopover showRelativeToRect:ofView:preferredEdge:] + 159
7   Test                                0x000000010000159a -[OITAppDelegate show:] + 570
8   CoreFoundation                      0x00007fff87dffa1d -[NSObject performSelector:withObject:] + 61
9   AppKit                              0x00007fff90924710 -[NSApplication sendAction:to:from:] + 139
10  AppKit                              0x00007fff90924642 -[NSControl sendAction:to:] + 88
11  AppKit                              0x00007fff9092456d -[NSCell _sendActionFrom:] + 137
12  AppKit                              0x00007fff90923a30 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2014
13  AppKit                              0x00007fff909a38e0 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489
14  AppKit                              0x00007fff9092263a -[NSControl mouseDown:] + 786
15  AppKit                              0x00007fff908ed0e0 -[NSWindow sendEvent:] + 6306
16  AppKit                              0x00007fff9088568f -[NSApplication sendEvent:] + 5593
17  AppKit                              0x00007fff9081b682 -[NSApplication run] + 555
18  AppKit                              0x00007fff90a9a80c NSApplicationMain + 867
19  Test                                0x00000001000012f2 main + 34
20  Test                                0x00000001000012c4 start + 52
21  ???                                 0x0000000000000003 0x0 + 3
  • 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-26T12:04:27+00:00Added an answer on May 26, 2026 at 12:04 pm

    The problem is not in NSPopover; the exception is thrown by NSViewController, and it says that although nib load was successful, it’s view property is still nil.

    Open “View.nib” in Interface Builder and assign File Owner‘s view outlet to the view object that the controller is supposed to represent (NSViewContoller becomes the file owner when it loads a nib). This is done by Ctrl-dragging from File Owner icon to the view’s icon, then choosing view from the list of outlets.

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

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.