Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > What's Up With IB and NSTableView?

What's Up With IB and NSTableView?
Thread Tools
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Jul 11, 2003, 04:47 PM
 
I try to set the show grid option for an NSTableView and it just doesn't stick. Meaning that it displays the grid in IB but no grid in the real app.

What's worse is that, when I test the interface the grid color also becomes the background color. What a mess!

I guess something needs to be refreshed so I restarted both IB and PB, cleaned the active target but the problem persists. Any ideas?
     
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Jul 11, 2003, 08:25 PM
 
I believe the grid thing is a known bug. Furthermore, I believe if you leave it off in IB and turn it on in code [table setDrawsGrid:YES] it will then work. I'm sure if you turn it off and then on in code it will work. unfortunately I think the background color issue is the way it's supposed to work :(
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Jul 11, 2003, 11:12 PM
 
Thanks very much, per your indication setting

[table setDrawsGrid:NO];
[table setDrawsGrid:YES];

worked fine.

This was a really annoying one... Spent a few hours going bannanas.

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jul 12, 2003, 05:34 AM
 
The reason for this is that drawing a grid in a tableview is against the HIG, I think. Or something.
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Jul 12, 2003, 08:41 AM
 
Originally posted by Angus_D:
The reason for this is that drawing a grid in a tableview is against the HIG, I think. Or something.
Dude, what is a HIG?

     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jul 12, 2003, 09:09 AM
 
HIG = Human Interface Guidelines
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jul 12, 2003, 09:15 AM
 
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Jul 12, 2003, 02:27 PM
 
Ah, I see...

Thanks.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2