The NSBox class implements simple views that can title themselves and draw a border around their content. These objects are known as boxes. You can use box to group, visually, some number of other views.
Questions tagged [nsbox]
39 questions
0
votes
1 answer
Simple drag and drop application not working
I am trying a simple drag and drop application:
I am creating a CameraIconView (subclass of NSView, containing some image views, text fields and a pop-up button), at run time.
This view is enclosed within CameraIconEnclosingBox (subclass of…

Devarshi
- 16,440
- 13
- 72
- 125
0
votes
0 answers
Modify NSBox or View on the fly
I am developing a project with WinDev Mobile for IOS. WM does not implement all the functionality I need, so I have to develop ObjC.
WM allows you to create a window on the fields "internal window" that displays the contents of another window.
I…

Slayes
- 395
- 1
- 5
- 15
0
votes
1 answer
Different Views in a NSBox
In a view there is a NSBox. I have to create different controls (Labels, TextFields, PopupButtons, Radio Buttons) based on data, and I want to place these controls in that box.
Suppose the data is like:
label: Name //name field is editable
…

Suneetha
- 67
- 5
0
votes
1 answer
Reposition an NSBox in the top pane of a horizontal NSSplitView
I the issue I'm having has to do with the coordinate system in Cocoa but I really don't know. This is all happening in the top pane of a horizontal NSSplitView.
Very simply, I'm trying to position one NSBox right below a second one (I load custom…

Mark
- 11
- 1
- 3
0
votes
1 answer
Issues when reloading views in an NSBox
I have a problem when reloading views. OSX is not as simple as IOS.
In MainMenu.xib I have an NSBox. As per Hillegrath, several views are stored in an array and when a segmented button is pressed the views are exposed. This works properly. My…
0
votes
1 answer
Understanding NSWindow,NSView,NSBox,NSCollection: compare features for a group of controls
I've been trying to understand the docs for NSWindow,NSView,NSBox,NSCollection in order to make the best choice for my project, but I think I'm missing some things.
I need to display 6 items, in a group; each item consists of a (fixed name)label,…

j yrez
- 243
- 1
- 3
- 11
0
votes
1 answer
Changing Visibility of NSbox Objective C
How can I change a NSBox to isHidden:YES|NO programmatically?

user1642542
- 11
- 3
0
votes
1 answer
transparent separator line based on nsbox
I have a problem with separator line, it is based on NSBox, I use a regular NSBox with its Box Type set to "Custom" and border type set to "Groove".
In the case of not painting the background, it's fine.
But if to draw the background, Can not be a…

user1414516
- 3
- 1
0
votes
1 answer
Resize NSBox and its Contents to Fit Window
Sounds easy enough but I can't seem to figure this one out or find any help for it.
This is the hierarchy I have at the moment:
Window
Custom View (I want this to resize, with its children, to fit Window)
Custom View (Contains buttons)
…

Cristian
- 6,765
- 7
- 43
- 64