Re: My own listbox

2008-08-02 Thread Boris Remizov

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,
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 be
actually a listbox, but it will work the same way: few objects - rows
and an optional scrollbar. As a good cocoa programmer I derived
NSControl and implemented -drawRect to draw my own rows. Then I put
this control to the window in Interface Builder and embed it into
NSScrollView. Here the problem starts. How can I tell NSScrollView
what size does my control have? I tried to implement -bounds and
-frame methods, but scroller became crazy. I tried this code:

- (NSRect) frame
{
   NSRect rc = [super frame];
   rc.size.height = number_of_rows * height_of_row;
   return rc;
}

- (NSRect) bounds {.. the same..}

NSScrollView shows scrollbar with correct proportions, but then I drag
it - it scrolls my control to the wrong direction. I tried to play
with -isFlipped - no success.

So I need some similar source to take a look for what I missed. Does
anybody have one?
Thank you.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Matthew Schinckel

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 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 be
actually a listbox, but it will work the same way: few objects - rows
and an optional scrollbar. As a good cocoa programmer I derived
NSControl and implemented -drawRect to draw my own rows. Then I put
this control to the window in Interface Builder and embed it into
NSScrollView. Here the problem starts. How can I tell NSScrollView
what size does my control have? I tried to implement -bounds and
-frame methods, but scroller became crazy. I tried this code:

- (NSRect) frame
{
   NSRect rc = [super frame];
   rc.size.height = number_of_rows * height_of_row;
   return rc;
}

- (NSRect) bounds {.. the same..}

NSScrollView shows scrollbar with correct proportions, but then I drag
it - it scrolls my control to the wrong direction. I tried to play
with -isFlipped - no success.

So I need some similar source to take a look for what I missed. Does
anybody have one?
Thank you.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/matt%40schinckel.net

This email sent to [EMAIL PROTECTED]


--
Matthew Schinckel [EMAIL PROTECTED]

The Feynman Problem-Solving Algorithm:
 (1) write down the problem;
 (2) think very hard;
 (3) write down the answer.



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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 controls. Am I wrong?

On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED] wrote:
 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,
 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 be
 actually a listbox, but it will work the same way: few objects - rows
 and an optional scrollbar. As a good cocoa programmer I derived
 NSControl and implemented -drawRect to draw my own rows. Then I put
 this control to the window in Interface Builder and embed it into
 NSScrollView. Here the problem starts. How can I tell NSScrollView
 what size does my control have? I tried to implement -bounds and
 -frame methods, but scroller became crazy. I tried this code:

 - (NSRect) frame
 {
   NSRect rc = [super frame];
   rc.size.height = number_of_rows * height_of_row;
   return rc;
 }

 - (NSRect) bounds {.. the same..}

 NSScrollView shows scrollbar with correct proportions, but then I drag
 it - it scrolls my control to the wrong direction. I tried to play
 with -isFlipped - no success.

 So I need some similar source to take a look for what I missed. Does
 anybody have one?
 Thank you.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Matthew Schinckel
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 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 controls.  
Am I wrong?


On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED]  
wrote:

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,
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 be
actually a listbox, but it will work the same way: few objects -  
rows

and an optional scrollbar. As a good cocoa programmer I derived
NSControl and implemented -drawRect to draw my own rows. Then I put
this control to the window in Interface Builder and embed it into
NSScrollView. Here the problem starts. How can I tell NSScrollView
what size does my control have? I tried to implement -bounds and
-frame methods, but scroller became crazy. I tried this code:

- (NSRect) frame
{
 NSRect rc = [super frame];
 rc.size.height = number_of_rows * height_of_row;
 return rc;
}

- (NSRect) bounds {.. the same..}

NSScrollView shows scrollbar with correct proportions, but then I  
drag

it - it scrolls my control to the wrong direction. I tried to play
with -isFlipped - no success.

So I need some similar source to take a look for what I missed. Does
anybody have one?
Thank you.



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/matt%40schinckel.net

This email sent to [EMAIL PROTECTED]


--
Matthew Schinckel [EMAIL PROTECTED]

The Feynman Problem-Solving Algorithm:
 (1) write down the problem;
 (2) think very hard;
 (3) write down the answer.



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: My own listbox

2008-08-02 Thread Boris Remizov
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 NSScrollView to correctly scroll your view,  
easy setFrameSize of the one

to correct value (to bound all content). That is sufficient.

On Aug 2, 2008, at 12:40 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 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 controls.  
Am I wrong?


On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED]  
wrote:

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,
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 be
actually a listbox, but it will work the same way: few objects -  
rows

and an optional scrollbar. As a good cocoa programmer I derived
NSControl and implemented -drawRect to draw my own rows. Then I put
this control to the window in Interface Builder and embed it into
NSScrollView. Here the problem starts. How can I tell NSScrollView
what size does my control have? I tried to implement -bounds and
-frame methods, but scroller became crazy. I tried this code:

- (NSRect) frame
{
 NSRect rc = [super frame];
 rc.size.height = number_of_rows * height_of_row;
 return rc;
}

- (NSRect) bounds {.. the same..}

NSScrollView shows scrollbar with correct proportions, but then I  
drag

it - it scrolls my control to the wrong direction. I tried to play
with -isFlipped - no success.

So I need some similar source to take a look for what I missed. Does
anybody have one?
Thank you.




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Phil
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
 adjustable height... And so on.
 I don't think that it is possible to do this with standard controls. Am I 
 wrong?


You can get an NSTableView (NSTableColumn) or NSOutlineView to use a
custom NSCell subclass for each of the rows in your list box. An
NSOutlineView is probably easiest to use for this because it only
exposes a single column.

Apple has some sample code that may help you with this:
http://developer.apple.com/samplecode/Clock_Control/
http://developer.apple.com/samplecode/SourceView/

Phil
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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:53 PM, Boris Remizov [EMAIL PROTECTED] wrote:
 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 NSScrollView to correctly scroll your view, easy
 setFrameSize of the one
 to correct value (to bound all content). That is sufficient.

 On Aug 2, 2008, at 12:40 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 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 controls. Am I
 wrong?

 On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED] wrote:

 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,
 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 be
 actually a listbox, but it will work the same way: few objects - rows
 and an optional scrollbar. As a good cocoa programmer I derived
 NSControl and implemented -drawRect to draw my own rows. Then I put
 this control to the window in Interface Builder and embed it into
 NSScrollView. Here the problem starts. How can I tell NSScrollView
 what size does my control have? I tried to implement -bounds and
 -frame methods, but scroller became crazy. I tried this code:

 - (NSRect) frame
 {
  NSRect rc = [super frame];
  rc.size.height = number_of_rows * height_of_row;
  return rc;
 }

 - (NSRect) bounds {.. the same..}

 NSScrollView shows scrollbar with correct proportions, but then I drag
 it - it scrolls my control to the wrong direction. I tried to play
 with -isFlipped - no success.

 So I need some similar source to take a look for what I missed. Does
 anybody have one?
 Thank you.



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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.sethwillits.com/blog/?p=17 for one example


 On Aug 2, 2008, at Sat-08 /02 /08-4:40 AM, 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 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 controls. Am I
 wrong?

 On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED] wrote:

 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,
 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 be
 actually a listbox, but it will work the same way: few objects - rows
 and an optional scrollbar. As a good cocoa programmer I derived
 NSControl and implemented -drawRect to draw my own rows. Then I put
 this control to the window in Interface Builder and embed it into
 NSScrollView. Here the problem starts. How can I tell NSScrollView
 what size does my control have? I tried to implement -bounds and
 -frame methods, but scroller became crazy. I tried this code:

 - (NSRect) frame
 {
  NSRect rc = [super frame];
  rc.size.height = number_of_rows * height_of_row;
  return rc;
 }

 - (NSRect) bounds {.. the same..}

 NSScrollView shows scrollbar with correct proportions, but then I drag
 it - it scrolls my control to the wrong direction. I tried to play
 with -isFlipped - no success.

 So I need some similar source to take a look for what I missed. Does
 anybody have one?
 Thank you.

 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com

 This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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 beneath.

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.sethwillits.com/blog/?p=17 for one example


 On Aug 2, 2008, at Sat-08 /02 /08-4:40 AM, 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 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 controls. Am I
 wrong?

 On Sat, Aug 2, 2008 at 1:33 PM, Boris Remizov [EMAIL PROTECTED] wrote:

 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,
 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 be
 actually a listbox, but it will work the same way: few objects - rows
 and an optional scrollbar. As a good cocoa programmer I derived
 NSControl and implemented -drawRect to draw my own rows. Then I put
 this control to the window in Interface Builder and embed it into
 NSScrollView. Here the problem starts. How can I tell NSScrollView
 what size does my control have? I tried to implement -bounds and
 -frame methods, but scroller became crazy. I tried this code:

 - (NSRect) frame
 {
  NSRect rc = [super frame];
  rc.size.height = number_of_rows * height_of_row;
  return rc;
 }

 - (NSRect) bounds {.. the same..}

 NSScrollView shows scrollbar with correct proportions, but then I drag
 it - it scrolls my control to the wrong direction. I tried to play
 with -isFlipped - no success.

 So I need some similar source to take a look for what I missed. Does
 anybody have one?
 Thank you.

 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com

 This email sent to [EMAIL PROTECTED]


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Steve Christensen

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-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Bertil Holmberg
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 admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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. 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 admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/vitaly.ovchinnikov%40gmail.com

 This email sent to [EMAIL PROTECTED]

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: My own listbox

2008-08-02 Thread Vitaly Ovchinnikov
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 pretty fits into user
interface of application.

I have enough experience in avoiding stupid things you may though
about ;) But most of my experience is related to Windows platform.
That's why I'm asking questions :)

Thank you.

On Sat, Aug 2, 2008 at 9:03 PM, Mark Munz [EMAIL PROTECTED] wrote:
 On Sat, Aug 2, 2008 at 3:53 AM, Vitaly Ovchinnikov
 [EMAIL PROTECTED] wrote:
 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 beneath.


 I'm slightly cringing at the fear that you're quickly heading down a
 path of going against many of the Apple Human Interface Guidelines.
 The guidelines are designed to give the end-user a consistent
 experience between apps on the Mac platform. It is one of the things
 that makes folks love the Mac.

 Sometimes making it look EXACTLY like it does on Windows is a really,
 really, really bad idea. You may be able to get away with some of it,
 but most folks will end up being disappointed that your app is very
 un-Mac like.

 I highly recommend downloading and reading the Apple Human Interface
 Guidelines. They are not perfect, but it is a great place to start in
 understanding your end-user (especially if you're new to the Mac).

 http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGControls/chapter_19_section_7.html#//apple_ref/doc/uid/TP3359-TPXREF227

 --
 Mark Munz
 unmarked software
 http://www.unmarked.com/

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]