BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-22-2008, 02:56 PM   #1
jrlawhorne
New Member
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Alltel
Posts: 12
Question MVC Pattern Example

Please Login to Remove!

Could someone post a sample of implementing the MVC pattern?

UI Event management is the thing I'm interested in most but a code snippet of a demo application that doesn't do anything except demonstrate MVC would be great.

I'm seeing other samples of MVC using AWT on the web but they're no good for BB development, especially in the UI event handling area.

Thanks
Offline  
Old 01-28-2009, 03:16 AM   #2
paodomingo
New Member
 
Join Date: Jan 2009
Model: none
PIN: N/A
Carrier: none
Posts: 6
Talking RE: MVC pattern

Quote:
Originally Posted by jrlawhorne View Post
Could someone post a sample of implementing the MVC pattern?

UI Event management is the thing I'm interested in most but a code snippet of a demo application that doesn't do anything except demonstrate MVC would be great.

I'm seeing other samples of MVC using AWT on the web but they're no good for BB development, especially in the UI event handling area.

Thanks
I want to ask the same favor. Anyone can please give advice on MVC pattern on blackberry apps? Thank you in advance!
Offline  
Old 02-18-2009, 09:49 AM   #3
rshortt
New Member
 
Join Date: Feb 2009
Model: 9530
PIN: N/A
Carrier: none
Posts: 4
Default

Ditto, please.

My guess is that we'll have to write software the Blackberry / RIM way unless someone writes a framework for this (and shares it).

-Rob
Offline  
Old 02-18-2009, 10:55 AM   #4
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Default

MVC is just a design pattern, you don't need a framework.
Offline  
Old 02-19-2009, 03:52 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

mvc means model - view - controller.
if you want to develop strict you have to create controller classes that handle all stuff like navigationclick, keychar etc.
usually you interleave view and controller as mainscreen implements the event callbacks like navigation click etc.

i externalize all controlling that is not UI related.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 07-21-2009, 02:51 AM   #6
pravipravi
Knows Where the Search Button Is
 
Join Date: Jul 2008
Location: India
Model: 9000
Carrier: AirTel
Posts: 29
Default

Hi Experts ,
I am too looking for such a MVC attempt in Blacknerry. Does anyone there , with such an experience ?

If any articles are available pls post here . !
__________________
Praveen K
Offline  
Old 07-27-2009, 12:38 PM   #7
pfowler
Knows Where the Search Button Is
 
pfowler's Avatar
 
Join Date: May 2008
Location: Palo Alto, CA
Model: 8310
PIN: N/A
Carrier: ATT
Posts: 39
Default

As other's have said, MVC is a design/architectual pattern that is independent of languages or frameworks. All Object Oriented languages make it simple to separate the Model (Data Storage), View (UI or Display) and Controller (Logic) from one another.

There are a number of books, tutorials and videos available to help you understand the concept. From there, it's just a matter of applying the concept to your project.

A quick google search brought me to this example, specific to the JavaSE:
CodeProject: Simple Example of MVC (Model View Controller) Design Pattern for Abstraction. Free source code and programming help

If you want a more detailed description, wikipedia is always a good place to start:
http://en.wikipedia.org/wiki/Modelxxx8211;viewxxx8211;controller
Offline  
Old 07-27-2009, 09:35 PM   #8
koic
Thumbs Must Hurt
 
Join Date: Feb 2009
Location: CANADA
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 64
Default

Yeah, it is kind of interesting, Why do ppl ask about MVC implementation in the first place?
Offline  
Old 08-06-2009, 09:17 PM   #9
jrlawhorne
New Member
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Alltel
Posts: 12
Default Why people ask

Because they aren't familiar with the RIM APIs when they start development on a new app. That's about it, I think.
Offline  
Old 08-10-2009, 04:10 PM   #10
Assassin
New Member
 
Join Date: Jul 2009
Model: 9500
PIN: N/A
Carrier: Rogers
Posts: 11
Default

Are there any good books on design patterns specific to mobile development?
Offline  
Old 08-10-2009, 04:21 PM   #11
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Design patterns are pretty generic - I'm not aware of any patterns that are specific to mobile development.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage Pyrex 2000 ml  Glass Beaker #1000 Measuring picture

Vintage Pyrex 2000 ml Glass Beaker #1000 Measuring

$29.99



Carbon Composition Resistors – USA Manufactured – NOS – Vintage picture

Carbon Composition Resistors – USA Manufactured – NOS – Vintage

$1.00



NOSTALGIA VINTAGE COUNTERTOP SNOW CONE SLUSHIE MACHINE RED picture

NOSTALGIA VINTAGE COUNTERTOP SNOW CONE SLUSHIE MACHINE RED

$30.80



Vintage Faux Leather Handmade Journal RefillableJoshua Embossed Verse picture

Vintage Faux Leather Handmade Journal RefillableJoshua Embossed Verse

$13.00



Vintage 1000 Count Oxford 3” x 5” (7320) index Cards Huge Lot made in NY USA BLU picture

Vintage 1000 Count Oxford 3” x 5” (7320) index Cards Huge Lot made in NY USA BLU

$49.00



NOS  Vintage Tungsten Fine Wire 0.003” Diameter  1000 Feet (304.8 Meters) picture

NOS Vintage Tungsten Fine Wire 0.003” Diameter 1000 Feet (304.8 Meters)

$75.00







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.