Has anyone integrated Backbone.Marionette and Rendr? - marionette

It looks like Backbone.Marionette views manipulate the DOM for events and such, so I'm guessing this is not as trivial as changing the base class references e.g. Backbone.View to BaseView.
Has anyone tackled this? Is it feasible given the above?

Don't know if anyone has done it yet but there is interest in the github issue queue.
https://github.com/airbnb/rendr/issues/63

Related

Combining MvxSidebarPresentation with MvxTabBarViewController

I am searching for a current solution for the issue stated at https://github.com/MvvmCross/MvvmCross/issues/1941.
We want to have the MvxSidebarPresentation throughout the whole app, but applying it with a MvxTabBarViewController does not work. At the moment the only solution is to deactivate the MvxSidebarPresentation for those Views completely.
Is there any pretty workaround or a solution by now? Or could you state me to ways how to solve it myself?

ViewControl always categorized? Xpages/Notes

im having a bit of a problem with the viewcontrol in Domino Designer 9.0.
Im working on an Application that was NOT created by me. I cant ask the original developer but i have made some good expierence here so i hope for help again.
I have a view control that is categorized. At least i think its categorized but you can expand and collapse some values so i guess its categorized. And i simply dont want that. I already went in the View(not the Control) and configurated every column to "none" sorting. However the control is still categorized. I have already been googling for ages but everybody is talking about a "expandLevel" property which is simply cannot find. I know i have given you very litle information on my problem but thats all i know. I hope someone can help me. Thanks in advance.
PS: Sorry for the bad english im not a native speaker.
Sincerly, Brugen.
I have no idea whats wrong with your application: As the helper- text in the column- properties of a view states on the Display Tab:
"Expand image" and "Collapse image" can only be defined when a column is categorized, or its responses are intented.
To categorize this column open the View design element to which this is bound, and choose to categorize any columns that you wish to categorize
I just checked with an example database to be absolutely sure: The view in xpage is categorized, when the underlying view is and it is sorted only when I change the column- property. No voodoo in xpage involved.
There might be some caching issues (serverside or clientside) that prevents you from seeing the changes, but basically it should work.
The expandLevel property that you found is basically just there to tell the xpage which categories to expand / collapse by default. If can be found in the All Properties- Pane of the xpage, opening data - data - dominoView.
If this does not work for you, then the guy who made this xpage did something special. Then we need the source- code of your xpage to tell WHAT he did.

Is there a QWidget which visualizes something like this "first |1|2|3...30|31|33| last"

I suppose everyone has used these, but I don't know how they are called, so I couldn't really search for them. Their behaviour is as follows: one can click on "first" or "last" or anything in between to navigate to a certain page.
Does anyone know if there exists some kind of QWidget which does that? Maybe similar to a combo-box where one can select something and a signal with the selected index is emitted?
Any hints would be much appreciated.
Thank you for your time david
The short answer is no, QT does not provide a widget with the capabilities you are looking for. It should be relatively simple to recreate using QButtonGroup and a styled set ofQPushButtons or re-implemented QABstractPushButtons.

BoxLayout in Cocoa

Originally, I wanted to ask how to create user interfaces with cocoa programmatically, i.e. without using interface builder. But it seems that someone else has already asked this question and the answers didn't help me.
So I'll ask a different question, that I hope will indirectly help me answer the previous question. Here it is:
(QUESTION_START)
How do I create an Objective C class that is equivalent in functionality with the BoxLayout class in Java? (Just click the link, the image on that page says everything you need to know about BoxLayout.)
(QUESTION_END)
Any help in the right direction will be appreciated!
There are a few sub tasks that are connected with the question, e.g.
"How do I ask a user interface element (e.g. a button) how large it wants to be" (before it has been drawn to the screen). To draw it on the screen you have to already know its size, don't you? Obviously, the interface builder application has figured out a way to do this.
I know that many Cocoa developers think it's a stupid idea to even try what I want to do. Let me tell you: I know the reasoning behind that opinion. Right now, laying out controls without interface builder sucks, because there is nothing that comes even close to a layout manager in cocoa. But if you think my question is stupid, please DONT answer. The whole internet is full of explanations why you would never want to create UIs with code in cocoa.
Thanks!
Answering your first question is kind of difficult and fairly involved, so I'm going to dive into your subquestion first:
How do I ask a user interface element (e.g. a button) how large it wants to be?
When you create a UI element, you tell it how big it should be (as well as where it should be) via its initWithFrame: constructor; or you can set its frame later via its setFrame: method. It will then draw itself into that space. You can get an element's frame via its frame method.
With that in mind, a BoxLayout class would, hypothetically, be a controller of some sort in which you could add UI elements, and then the BoxLayout controller would arrange them in a grid (or whatever) on an NSView of some sort.
I know you weren't looking for answers that questions motives, but given the complexity of a BoxLayout class vs. laying out the interface in IB, it seems relevant to ask why you want to do this.

Equivalent of .Net Data Repeater in Cocoa

I'm a total noob to Xcode and Interface builder. I'm on version 3.2.3 and OSX 10.6.4.
What I'd like to know, and haven't been able to find out, is how to display a list of n items. Using .Net, I'd probably use a Data Repeater control and then use that to repeatedly populate the controls I'd like to display.
Is there an equivalent or am I going about things in the wrong way? I don't see anything in the IB controls library that is quite what I'm looking for.
Any help is much appreciated, even a direction to a relevant tutorial or something.
Regards,
Iain
I guess you are looking for NSTableView with it's DataSource (ArrayController or equivalent) and it's delegate (for defining N items)?
The most common view for displaying lists is NSTableView. There are many, many tutorials on the web... Just google 'nstableview tutorial' and take your pick. :-)

Resources