Thanks Mark, I know what you are talking about.
But as I told before, this control is only acts like listbox. It shows
group of my objects in one column. And shows scroller if they don't
fit. It has nothing with windows listbox or NSTableView, it fully
drawn by hands, has transparent background and
Unfortunately, I need completely different behavior...
But I almost finished with cells and NSTableView and now it looks
exactly as I need.
So thanks to all who helped.
On Sat, Aug 2, 2008 at 8:29 PM, Bertil Holmberg
<[EMAIL PROTECTED]> wrote:
> I have implemented a custom control, the ListView. P
I have implemented a custom control, the ListView. Perhaps this might
be useful for you.
Code and example here – http://mac.tidings.nu/Soft/ListView.shtml
Regards,
Bertil___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admi
On Aug 2, 2008, at 3:52 AM, Vitaly Ovchinnikov wrote:
Is it possible to get rid of blue "focus" border for NSTableView when
I select it?
In IB's inspector window, one of NSTableView's attributes is Focus
Ring. Just set it to "none."
___
Cocoa-de
The second question is how to hide highlight marker? I created my own
cell, implemented it's -drawWithFrame - all seems to work fine. My
drawing code draws selected and non-selected cells exactly as I need.
But my cells have rounded corners and transparent background and I see
highlight marker bene
Is it possible to get rid of blue "focus" border for NSTableView when
I select it?
On Sat, Aug 2, 2008 at 12:45 PM, Jack Carbaugh <[EMAIL PROTECTED]> wrote:
> in a word, yes.
>
> you would use subclasses for the table cell which would tell it what to
> draw in the cell.
>
> see http://www.sethwil
The problem with -setFrameSize is that it wants width too. I want my
control to use the whole width of the scrollview's client area. But
this whole width depends on vertical scrollbar, that may be hidden.
And this depends on height that I should pass to -setFrameSize...
On Sat, Aug 2, 2008 at 1:5
On Sat, Aug 2, 2008 at 8:40 PM, Vitaly Ovchinnikov
<[EMAIL PROTECTED]> wrote:
> The problem is that my control will work like listbox, but don't
> exactly. Actually I need to draw every row myself. And these rows will
> have some padding and many graphics stuff inside. And they will have
> adjustab
To draw custom rows you should implement your ownNSCell class and set
it to your
NSTableView's column with IB or programmatically (invoke
NSTableColumn's setDataCell).
But if your control is 'really' so much 'Custom' and you decide that
NSTableView is not sufficient
for your purpose, to allow
You should be able to get close by using a different type of object
for the Cells.
That's a much nicer way of doing it.
On 02/08/2008, at 6:10 PM, Vitaly Ovchinnikov wrote:
The problem is that my control will work like listbox, but don't
exactly. Actually I need to draw every row myself. And
The problem is that my control will work like listbox, but don't
exactly. Actually I need to draw every row myself. And these rows will
have some padding and many graphics stuff inside. And they will have
adjustable height... And so on.
I don't think that it is possible to do this with standard con
NSTableView in NSScroll View. THere is one in the IB palette.
You can tell it to only have one column, and scrollbars if you want.
Do everything you can in Interface Builder. The less code you write
the better.
Matt.
On 02/08/2008, at 5:51 PM, Vitaly Ovchinnikov wrote:
Hello,
In windows
Hello,
You shouldn't do this over work by implementing your own Control. You
may use
NSTableView or NSOutlineView instead. These visual classes allow to
implement
ListBox's look-and-feel and behavior in much much easier manner.
On Aug 2, 2008, at 12:21 PM, Vitaly Ovchinnikov wrote:
Hello,
Hello,
In windows there is a control called "Listbox". It looks like grid
with single column without header. Several rows and maybe a scrollbar.
Example is here:
http://www.java2s.com/Tutorial/VBImages/ListBoxSelectionEventAddValue.PNG
I need to create control that works similar way. It will not b
14 matches
Mail list logo