tombenner/nui

Style problem

Closed this issue · 5 comments

I'm building a TableView app. I have copied the .nss file from the demo. However, while everything else is ok, the background for labels and for the nav. bar title are white while the background is E3E3E3 (roughly). I think there needs to be a background-color property associated with these elements.

Also note you are starred on Cocoa Controls today.

Congrats. It's a tremendous resource.

In the new version I just pushed out, the content and detail labels in UITableViewCells now have a clear background color (instead of a white background color). Could you let me know if this fixes what you were seeing, or if you were referring to another UI component? If it's not fixed, could you name the UI component that needs to be fixed (e.g. UIButton)? Thanks!

(You'll want to read the new Installation instructions and migration notes when installing the new version.)

Tom, I've started from scratch installing the new version ... I'm getting this error:

.sdk/usr/include/objc/runtime.h
Redefinition of 'Category' as different kind of symbol

In file included from /Users/david/Documents/appname Combined - new/appname /Classes/AppDelegate.m:11:

/Classes/AppDelegate.h:17:
/NUI/Core/NUIAppearance.h:10:9: In file included from...NUI/Core/NUIAppearance.h:10:
/NUI/Core/NUISettings.h:12:9: In file included from .../NUI/Core/NUISettings.h:12:
/NUI/Core/NUISwizzler.h:10:9: In file included from .../NUI/Core/NUISwizzler.h:10:
/AddCategoryViewController.h:13:8: Previous definition is here

I do have a core data entity called "Category", but I've had no problems till now. I can change it if it's easier..

btw, I can still use the previous version of NUI without this issue.

I did change the name of my Category entity, and that solved the problem for me.. But it does feel like something is funky.. I'll look into it from my end as time permits

timd commented

I've hit the same issue - I had a CoreData entity called Category, which clashed with the NUI class. The workaround was to add a namespace prefix to the CoreData entity. Would it be feasible to namespace the NUI class?