Re: [MacRuby-devel] Using Virtus or SmartProperty as outlets?

2012-11-22 Thread Steve Clarke
I think that discussions about validation of user entered data need to consider 
how you provide feedback to the user on what happened.  

Have you thought about how validation errors are integrated with Cocoa 
frameworks?  I don't know anything about Virtus or SmartProperties but I would 
be surprised if they buy you anything when used in conjunction with a Cocoa 
user interface.  Cocoa provides formatters.  Take a look at "Text Field with 
Number Formatter" in the Xcode controls.

Steve

On 22 Nov 2012, at 06:47, Colin Thomas-Arnold  wrote:

> What happens if you use BOTH attr_accessor and attribute - the first for the 
> IB outlet, and the other for validation. Just a thought. 
> 
> 
> On Nov 21, 2012, at 11:08 PM, david kramf  wrote:
> 
>> "Basically, I need to make sure that when I ask for an integer, I get an 
>> integer. And when I want a string - I can reject anything but strings."
>> Can't you use Ruby services like is_a? to force it ?
>> Thanks, David Kramf
>> On Nov 21, 2012, at 10:04 PM, Carolyn Ann Grant wrote:
>> 
>>> Basically, I need to make sure that when I ask for an integer, I get an 
>>> integer. And when I want a string - I can reject anything but strings.
>> 
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] Using Virtus or SmartProperty as outlets?

2012-11-22 Thread Carolyn Ann Grant
Hmm… I didn't think of either of those. I knew I was missing something obvious! 
A case of missing the wood for the trees, I think. :-)

Thanks, Colin and Steve! 

/Carolyn

On Nov 22, 2012, at 4:51 AM, Steve Clarke  wrote:

> I think that discussions about validation of user entered data need to 
> consider how you provide feedback to the user on what happened.  
> 
> Have you thought about how validation errors are integrated with Cocoa 
> frameworks?  I don't know anything about Virtus or SmartProperties but I 
> would be surprised if they buy you anything when used in conjunction with a 
> Cocoa user interface.  Cocoa provides formatters.  Take a look at "Text Field 
> with Number Formatter" in the Xcode controls.
> 
> Steve
> 
> On 22 Nov 2012, at 06:47, Colin Thomas-Arnold  wrote:
> 
>> What happens if you use BOTH attr_accessor and attribute - the first for the 
>> IB outlet, and the other for validation. Just a thought. 
>> 
>> 
>> On Nov 21, 2012, at 11:08 PM, david kramf  wrote:
>> 
>>> "Basically, I need to make sure that when I ask for an integer, I get an 
>>> integer. And when I want a string - I can reject anything but strings."
>>> Can't you use Ruby services like is_a? to force it ?
>>> Thanks, David Kramf
>>> On Nov 21, 2012, at 10:04 PM, Carolyn Ann Grant wrote:
>>> 
 Basically, I need to make sure that when I ask for an integer, I get an 
 integer. And when I want a string - I can reject anything but strings.
>>> 
>>> ___
>>> MacRuby-devel mailing list
>>> [email protected]
>>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>> ___
>> MacRuby-devel mailing list
>> [email protected]
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel


[MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

2012-11-22 Thread J Silver

http://cl.ly/image/2w0P1X3H1v3T
http://cl.ly/image/3Q3j260q1s1F

Want to report success using QtRuby library with the qtbindings gem.

Internally, Able to use Signals and Slots through the advanced 
techniques described around the web.


Now have a working version of the chat available in the GlobalChat2 
repository.


https://github.com/jsilverMDX/GlobalChat2/tree/master/gc2-qtruby

It runs on 1.8.7 and 1.9.3. It lacks many of the features of the 
advanced MacRuby client coming soon to App Store.


It uses QtDesigner for the GUI files with the UI loader and should run 
natively on Mac, Windows and Linux.


However, one thing. The MacRuby client is DAYS faster getting a big log 
back from the server than QtRuby, and the signal is obviously not to 
blame. This happens on both 1.9 and 1.8.7. Any ideas?



HAPPY TURKY DAY!

jsilver
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macruby-devel