Skip to main content

All Questions

Tagged with
0 votes
1 answer
96 views

Is there an event or method that is called after a NSCollectionViewItem is created to get or set the view controller?

I want to get a reference to the main applications view controller from inside of NSCollectionViewItem. I created this function: public partial class MyViewItemController : NSCollectionViewItem { ...
1.21 gigawatts's user avatar
0 votes
0 answers
139 views

NSTableRowView not calling DrawBackground correctly during drag-drop operations

I have an NSTableView with a set of rows. There are two types of rows - titles and data - which are displayed differently. I am dragging an object from within my app onto the data rows. Drag and drop ...
Paul's user avatar
  • 501
1 vote
3 answers
611 views

Long running task in UI thread

I have a long running task that manipulates an NSMutableAttributedString. That manipulation includes checking fonts, such as: bold = (pfont.FontDescriptor.SymbolicTraits & ...
Paul's user avatar
  • 501
-1 votes
1 answer
695 views

Present Sheet in a center of parent window

I use function NSViewController.PresentViewControllerAsSheet(NSViewController) and everything works great, but I would like to have a chance change the position of this sheet (for ex. in the center ...
SeRgI's user avatar
  • 141
0 votes
1 answer
264 views

How to determine whether the macOs app was launched via a url

I need to know whether the app was launched via an URL in DidFinishLaunching. The notification parameter in DidFinishLaunching contains a key LaunchIsDefaultLaunchKey which according to Apple ...
Petru Lutenco's user avatar