Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Dec 18, 2017 7:52 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Native Cocoa Search Field
PostPosted: Thu Jun 23, 2011 3:53 pm 
Offline

Joined: Mon Oct 09, 2006 3:20 pm
Posts: 315
Now that cocoa support is maturing, are there any viable search field control solutions out there? We have carbon ones, we have emulating ones, but what about one for cocoa builds? I remember seeing a pre-release demo control somewhere recently "CControls" but I don't think it has been officially releassed. Thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Thu Jun 23, 2011 3:58 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Try NSSearchFieldMBS class in latest MBS Plugins.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Thu Jun 23, 2011 4:25 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
george wrote:
Now that cocoa support is maturing, are there any viable search field control solutions out there? We have carbon ones, we have emulating ones, but what about one for cocoa builds? I remember seeing a pre-release demo control somewhere recently "CControls" but I don't think it has been officially releassed. Thanks.


Check the latest builds of MacOSLib
It has a bunch of controls

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Tue Jun 28, 2011 5:39 pm 
Offline

Joined: Thu Jul 13, 2006 11:20 am
Posts: 114
npalardy wrote:
george wrote:
Now that cocoa support is maturing, are there any viable search field control solutions out there? We have carbon ones, we have emulating ones, but what about one for cocoa builds? I remember seeing a pre-release demo control somewhere recently "CControls" but I don't think it has been officially releassed. Thanks.


Check the latest builds of MacOSLib
It has a bunch of controls


Including NSSearchField.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Wed Jun 29, 2011 1:49 pm 
Offline

Joined: Mon Oct 09, 2006 3:20 pm
Posts: 315
pardon my ignorance, but i downloaded the latest release 283 from http://code.google.com/p/macoslib/ and still can't find it... Do you know the name of the class? thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Wed Jun 29, 2011 2:22 pm 
Offline

Joined: Thu Jul 13, 2006 11:20 am
Posts: 114
george wrote:
pardon my ignorance, but i downloaded the latest release 283 from http://code.google.com/p/macoslib/ and still can't find it... Do you know the name of the class? thanks.



It's NSSearchField. You'll need to use Subversion to get the source code.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Mon Jul 04, 2011 11:24 am 
Offline

Joined: Mon Oct 09, 2006 3:20 pm
Posts: 315
thanks it's working great. i noticed the lostfocus/getfocus events don't work... is there any way to get these to work, or is it a limitation? thanks again.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Mon Jul 04, 2011 11:42 am 
Offline

Joined: Thu Jul 13, 2006 11:20 am
Posts: 114
george wrote:
thanks it's working great. i noticed the lostfocus/getfocus events don't work... is there any way to get these to work, or is it a limitation? thanks again.


I'll take a crack at it. This is one area where the Rb framework diverges from Cocoa.


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Mon Jul 04, 2011 12:47 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, you can try our plugin CocoaControlMBS. In general it's not easy to embed cocoa controls in Real Studio. CocoaControlMBS does it well for Carbon and Cocoa applications.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 3:40 am 
Offline
User avatar

Joined: Wed Oct 05, 2005 1:21 pm
Posts: 515
Location: United Kingdom
MonkeybreadSoftware wrote:
Try NSSearchFieldMBS class in latest MBS Plugins.

Greetings
Christian


The example project in the Leopard folder doesn't work Christian. It simply creates a Textfield, not a searchfield. The documentation isn't that clear on how to fix it either...

_________________
Gorgeous REALbasic controls from Figa Software | My Flickr | My Blog
11" MacBook Air 1.8Ghz i7, 4GB RAM, OSX 10.8.2, RB 2012 r1.1 Pro | iPhone 4S 32GB | Nikon D60


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 3:40 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Please download 11.2 plugins. That issue was fixed some time ago.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 3:54 am 
Offline
User avatar

Joined: Wed Oct 05, 2005 1:21 pm
Posts: 515
Location: United Kingdom
I've just downloaded them 30 minutes ago for the first time and this is the issue I'm seeing.

Does the included example need to be changed??

_________________
Gorgeous REALbasic controls from Figa Software | My Flickr | My Blog
11" MacBook Air 1.8Ghz i7, 4GB RAM, OSX 10.8.2, RB 2012 r1.1 Pro | iPhone 4S 32GB | Nikon D60


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 4:10 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well, I hope you downloaded 11.0 plugins so you got all the examples. See here: http://www.macsw.de/plugin/.

Once you have that, please download 11.2pr7 plugins here: http://www.macsw.de/plugin/Prerelease/.

11.0 includes the example project and 11.2 plugins have the class fixed.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 5:25 am 
Offline
User avatar

Joined: Wed Oct 05, 2005 1:21 pm
Posts: 515
Location: United Kingdom
Thanks Christian,

The problem is fixed in the prerelease versions.

I'm just not clear on two things:

1. Is it possible to have a popup menu linked to the search field (so I can narrow searches)
2. I can't figure out how to draw a focus ring at all...

Cheers,

_________________
Gorgeous REALbasic controls from Figa Software | My Flickr | My Blog
11" MacBook Air 1.8Ghz i7, 4GB RAM, OSX 10.8.2, RB 2012 r1.1 Pro | iPhone 4S 32GB | Nikon D60


Top
 Profile  
Reply with quote  
 Post subject: Re: Native Cocoa Search Field
PostPosted: Sat Jul 09, 2011 5:39 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Well first check the documentation: http://www.monkeybreadsoftware.net/class-nssearchfieldmbs.shtml

The focus ring should be visible when the control has focus. else check the focusRingType property.

Not sure what you mean with a popupmenu. Maybe we chat that by email.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group