Questions tagged [nspopover]

NSPopover is a Cocoa control to temporarily show additional info in a popup like window that automatically disappears for user actions not related to the popover.

The NSPopover class was added in OS X 10.7 for tasks like events in the calendar app (see year overview). Apple's documention for the class is here: NSPopover Class Reference.

216 questions
3
votes
2 answers

Touchbar and NSPopover windows

I have a NSPopover window which I would like to add touchbar support to. I've managed to implement touchbar support for a standard NSWindow, but following the same procedure for my popover doesn't result in any touchbar items appearing in the xCode…
glenstorey
  • 5,134
  • 5
  • 39
  • 71
3
votes
1 answer

Animation artifacts when NSImageView intersects NSTextField in an NSPopover

I'm presenting a view in an NSPopover, using code based on this sample code. The view, and all of its sub-views, are layer-backed. There's a single NSImageView, and several non-editable NSTextFields. The text fields backgroundColors are set to…
zpasternack
  • 17,838
  • 2
  • 63
  • 81
3
votes
5 answers

NSPopover not closing

Im trying to make so if the user clicks on the menu icon to show the popover that the popover closes if the user clicks anywhere but popover. I set the behavior to transient but thats not doing what I thought. Now if the user clicks somewhere on the…
John Pollard
  • 3,729
  • 3
  • 24
  • 50
3
votes
2 answers

NSPopover crashes when window closes

Long story short: If I put a NSTableView with highlight style set to SourceList inside a NSPopover, my app crashes when I close the window containing the popover. EDIT: I can replicate this issue on a new…
Francesco
  • 1,840
  • 19
  • 24
3
votes
3 answers

Can't disable background blur with NSPopover

I'm having no luck trying to get NSPopover back to its 10.9 appearance when running in 10.10. I have a popover which is attached to an NSView that the user drags around. The popover must be transparent so the user can still see the position of the…
martinjbaker
  • 1,424
  • 15
  • 23
3
votes
0 answers

NSButtons Inside NSPopover View Controller

I've developed for Mac before but this is the first time I've attempted to use the NSPopover control, which seemed like a great idea to start out with but so far is causing me no end of problems. The applciation is a menu bar application. I have two…
AlexJHayward
  • 53
  • 1
  • 5
3
votes
1 answer

Mac: Display hierarchical lists of data plus detail view (similar to UINavigationController + UITableViewController)

I am having a serious "best-practice" issue porting my iOS app to the Mac. I'd like to display a (searchable) list whose entries are either other lists or single entries, for which the user can then show a detail view. Under iOS, this is simply…
MrMage
  • 7,282
  • 2
  • 41
  • 71
3
votes
2 answers

NSOutlineView reloadData close my NSPopOver

I have a NSOutlineView (View based) with two columns. In the second column i have a NSButton connected to one NSPopOver. When i click the button, it show the NSPopOver as expected => Popover is visible. The problem: If i reloadData of…
Elfoiros
  • 468
  • 1
  • 7
  • 18
3
votes
1 answer

Should an outlet to a view controller class be weak or stong? OSX app

Here's what i did. Make a clean OSX project. went to main.xib and dragged a popover controller. This created 2 visible objects on on interface builder. I went to the appDelegate.h file and did `-@Property (assign) IBOutlet NSViewController…
Just a coder
  • 15,480
  • 16
  • 85
  • 138
3
votes
0 answers

Autofill NSPopover for an NSTextView

I'm trying to figure out how to create an autocomplete NSTextView. The idea I'm trying to implement is have an NSPopover display a list of possible usernames, like this: http://cl.ly/McZ0. The goal of it is to function just like Tweetbot for Mac's,…
Anthony Castelli
  • 567
  • 6
  • 17
3
votes
1 answer

Changing appearance of NSPopover?

I'd like to make a NSPopover similar to this one: So I'd like to override the drawing. Unfortunately I didn't find anything in the Apple documentation. However, I did find the following private class using class dump: @interface NSPopoverFrame :…
IluTov
  • 6,807
  • 6
  • 41
  • 103
3
votes
0 answers

NSPopover relative to NSMenuItem

I'm working on an OSX application which uses a NSMenu to display content. I'd like to make a NSPopover appear when an NSMenuItem is highlighted, but I'm stucked with the "showRelativeToRect:ofView:preferredEdge:" part as I don't have a relative view…
Romain Pouclet
  • 864
  • 2
  • 8
  • 17
3
votes
2 answers

Specify editing NSTextField inside NSPopover on appearance

I'm working on an app that presents an NSPopover containing a number of NSTextFields. While I can tab between these fields as I expect, the popover is selecting a particular text field to be in the editing state when it appears, and it's not the…
Tim
  • 59,527
  • 19
  • 156
  • 165
3
votes
1 answer

NSStatusItem with NSPopover and NSTextField

I have a NSStatusItem that displays a NSPopover which contains a NSTextField but the text field isn't editable although it has been so be so in Xcode. Now this is a known bug and there is apparently a solution someone posted here. I really need to…
iMaddin
  • 982
  • 1
  • 14
  • 23
2
votes
1 answer

Unable to get tab order working within NSPopover

I have a View within an NSPopover, and I am unable to set the tab order correctly. I have set the nextKeyView within my 4 text fields. But it tends to flip from TextField1 to Search1, instead of TextField1 -> TextField2. I have tried inserting…
mattdurham
  • 23
  • 4