Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table View and grids



On 2006-06-03, at 06:16:06, Andreas Kiel wrote:

I got a table view and want to toggle the display off the horizontal grid lines.
Toggling both vertical and horizontal can be done "draws grid", doing that for horizontals only seems to need a call method. I searched for that and found that I should use "setGridStyleMask:", but there is where I stuck with the parameters (constants).
Maybe somebody can help.

enum {
    NSTableViewGridNone = 0,
    NSTableViewSolidVerticalGridLineMask = 1 << 0,
    NSTableViewSolidHorizontalGridLineMask = 1 << 1
};

setGridStyleMask takes an unsigned int parameter so you should be able to get by with the number 1 to specify vertical grid only.


Philip Aker
philip->vcn.dot.bc.dot.ca

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >Table View and grids (From: Andreas Kiel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.