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

  • SEARCH
  • Home
  • 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 7812127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:24:54+00:00 2026-06-02T04:24:54+00:00

I’m a .NET developer trying his hand at an OSX port of a Windows

  • 0

I’m a .NET developer trying his hand at an OSX port of a Windows application. I’m using MonoDevelop and MonoMac (with the XCode Interface Builder) to create my UI.

Coming from Windows, I’m trying to understand the Cocoa equivalent of a “UserControl” since I used these extensively in my WinForm version. I have a group of controls (let’s say a label, textbox and button) that I want to package up and reuse in various places throughout my Cocoa UI.

From what I understand, I need to create a “custom view” by subclassing NSView (let’s call it “MyView”). I can create “MyView” in the Interface Builder alright, but when I use it on my main window it always appears empty/blank.

Here’s how I’m placing the control on my main form in IB: I add a Custom View (NSView) from the object library, then change the “class” property under “Custom Class” to “MyView”. It’s not a problem if the control doesn’t render at design time, but it’s totally empty at runtime too.

I suspect I’m missing something really simple/obvious. Are custom views supposed to be used this way? All the examples I’ve found online seem to discuss custom drawing, which I don’t want (I just want to use a bunch of controls together so I can reuse them). Can anyone out there shed some light on this for me?

Thanks in advance.

  • 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-02T04:24:54+00:00Added an answer on June 2, 2026 at 4:24 am

    If you just want a group of standard controls, then you may want a standalone view NIB/XIB. Then you’d load that NIB each time you want to instantiate that group, get the top-level view from it, and insert that view into some other view hierarchy. You’d use an NSViewController (or a custom subclass) to own and load that NIB.

    You can also add a free-standing view to a NIB that already contains, say, a window. The NIB’s owner (often an instance of NSWindowController or a subclass) would have an outlet to refer to that free-standing view hierarchy. Your code could then use that view hierarchy at will, inserting it into the window’s view hierarchy at an appropriate place.

    You don’t typically use a custom view class just to group standard controls. You only make a view subclass to make a non-standard view, one that draws in a custom manner or provides a different manipulation technique.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
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 am using JSon response to parse title,date content and thumbnail images and place
I am trying to understand how to use SyndicationItem to display feed which is
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am trying to render a haml file in a javascript response like so:
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.