Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Creating HUD Widgets    2 more silly questions
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Apprentice
Posted
Two more dumb questions:

How do I get a long list to scroll vertically in a HUD widget?

I am trying to format a date into mm/dd hh:mm format. According to the documentation, I should be able to use <$theObject.startDate %m/%s %h:%m$> to do this, but I get:
ExceptionReason = "[<GWTask 0x179b65b0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key startDate %m/%s %h:%m.";

What have I missed here?

Thanks.
 
Posts: 6 | Location: Japan | Registered: June 22, 2006Reply With QuoteEdit or Delete MessageReport This Post
Marketcircle Team
Picture of Ali Lalani
Posted Hide Post
1. I'm assuming you mean you want to restrict the height of the widget to a specified value. This will be possible in the next release by putting the key "MCTemplateMaximumHeight" in the Info.plist for the widget and setting an integer value(which represents the max height in pixels).

2. That value will not work, however we have methods for date formatting for date values.
The full list of these keys can be found on page 61 of the "Daylite Data Description.pdf" document in the Developer Kit. You'll have to find the closest one to what you want, but i don't believe your specific format is included.

Perhaps you could try 'preferredDateTimeFormat'.

So in your case you would put:
<$theObject.startDate.preferredDateTimeFormat$>

Hope that helps!
 
Posts: 108 | Registered: June 15, 2006Reply With QuoteEdit or Delete MessageReport This Post
Apprentice
Posted Hide Post
quote:
Originally posted by Ali Lalani:
1. I'm assuming you mean you want to restrict the height of the widget to a specified value.


No, not really - I have a list which overflows beyond the bottom pane of the window, but no scroll bar appears. However, when I resize the window, the scroll bar turns on. This is flakey - a bug in the UI class object?

quote:
2. That value will not work, however we have methods for date formatting for date values.
The full list of these keys can be found on page 61 of the "Daylite Data Description.pdf" document in the Developer Kit. You'll have to find the closest one to what you want, but i don't believe your specific format is included.


It's not, but I can kludge it thanks to your help. I was looking at page 29 of the Public Developer Kit file which describes a different way of formatting, using the NSCalendar formatting conventions.

Thanks for the help.
 
Posts: 6 | Location: Japan | Registered: June 22, 2006Reply With QuoteEdit or Delete MessageReport This Post
Marketcircle Team
Picture of Ali Lalani
Posted Hide Post
quote:

No, not really - I have a list which overflows beyond the bottom pane of the window, but no scroll bar appears. However, when I resize the window, the scroll bar turns on. This is flakey - a bug in the UI class object?


I see what you mean. It's a UI bug, nothing that you as a widget developer can do anything about at this point. We'll look at getting that fixed.

quote:

It's not, but I can kludge it thanks to your help. I was looking at page 29 of the Public Developer Kit file which describes a different way of formatting, using the NSCalendar formatting conventions.


OK, it looks like that <$date$> command is a reserved key and just gives you today's date, with the ability to format it in a custom manner. It would be nice to have that ability for any date though. We'll take a look at that for a future release.

Thanks for the feedback!
 
Posts: 108 | Registered: June 15, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

Marketcircle    Forums  Hop To Forum Categories  Extending Daylite  Hop To Forums  Creating HUD Widgets    2 more silly questions

© Copyright 2006 Marketcircle Inc. All rights reserved.