Posts Tagged ‘creating’

Creating custom component of FLEX Datagrid

Posted in Adobe on June 25th, 2010 by Saba – Be the first to comment

dataProvider is an Object. You have to check its data type,if it is an Array or ArrayCollection or GroupingCollection to get its size then do the following eg:

if(dataprovider is Array) then Dataprovider.length if(dataprovider is ArrayCollection) then Dataprovider.length

jadhavpradip wrote:

Creating custom component of FLEX Datagrid

Posted in Adobe on June 24th, 2010 by Saba – Be the first to comment

Hello All,

I want to develop custom component from flex datagrid, which is having built in facility of pagination.

And want to use datagrid’s default property say ‘dataProvider’.

What i want to do i want to get data, which is set to custom datagrid as dataProvider. Then want to apply pagination and then i want to apply paginated data as dataProvider to super class.

My problem is that while overriding dataprovider’s set method, i am not able to get count of data which is set as dataProvider to component.

Does anybody give me idea how to get count of dataProvider or the way i am going that is wrong.

Or is there any alternative solution to create custom component of datagrid?

Regards, Pradip Jadhav

Help w/ first step of creating Help Book for app

Posted in Apple on May 29th, 2010 by Saba – 2 Comments

I’m trying to create a help book for my app using the “Apple Help Programming Guide”, which is not easy for me to follow. I’m at the section “Creating a Basic Help Book”, trying to get the structure right where the HTML files are to go. It says I should have a dir structure like:

SurfWriter.app/ (I’m guessing this is the top level folder under “Groups & Files” of my XCode view). Contents/ Resources/ SurfWriter.help/ Contents/ Info.plist Resources/ shrd/ English.lproj/ pgs/ gfx/ sty/ scrpt/

Should I just add in the “Groups & Files” view of XCode a group, or do I actually create directories with these names? I don’t even have a ‘Contents’ directory in the top level of my XCode project so I’m guessing I have to create every one of these which I don’t have in my current project.

Under “Groups & Files” of my XCode project, I have for the most part, the following:

MyApp Source Controllers Delegates Models Servers Views Includes Resources Frameworks Products Targets Executables Find Results Bookmarks SCM Project Symbols Implementation Files Interface Builder Files

Creating a PDFSelection…

Posted in Apple on May 25th, 2010 by Saba – 1 Comment

Dear progammers, Thanks for all the help! Onto the next problem… Users need to be able to select sections of a pdfView, and I need to be able to save and analyze the selections (e.g., do they overlap). I also need to be able to restore the selections later. So the question is, can I use PDFSelection to do this. I can’t seem to find a way to say create a selection with this NSRect (or part of the string). Is there a way to do this? Is there an alternative?

How to stop creating Downloads folder

Posted in Firefox on May 22nd, 2010 by Saba – 34 Comments

“Ron Hunter” wrote in message news:IdWdnVhIYorxd2vWnZ2dnUVZ_qednZ2d@mozilla.org…

No, they do not. :-)

problem in creating flex project in flex builder

Posted in Adobe on May 4th, 2010 by Saba – Be the first to comment

hiiiiiiii

Root folder: C:Program FilesApache Software FoundationTomcat 6.0webappssamples

Root URL: http://localhost:8080/samples/

Context root: /samples

set the path according to your system configuration. but to set server you have to install BLAZEDS software which is open source..

On Tue, May 4, 2010 at 3:15 PM, vennelakanti.vardhan.kumar@gmail.com < vennelakanti.vardhan.kumar@gmail.com> wrote:

problem in creating flex project in flex builder

Posted in Adobe on May 4th, 2010 by Saba – 2 Comments

Hi friends,

I am trying to create a flex project in flex builder and the procedure is as explained below

1. File->new -> project –> flex project 2. giving the project name as “projone”, selected the server type as j2ee and click on next 3. in j2ee server wizard. it is asking for.. 1. root directory, 2. Root url 3. context path.. as i am first time creating the flex project .. i dont understand which root directory i need to specify… please help me if anybody knows how to create flex project for j2ee server.

Creating temporary NSManagedObjects

Posted in Apple on April 28th, 2010 by Saba – Be the first to comment

On Apr 27, 2010, at 10:42 AM, vincent habchi wrote:

Problem in creating multiple instance’s of a module(which has a singleton ModelLocator) without loading a module again.

Posted in Adobe on April 27th, 2010 by Saba – Be the first to comment

Hi Gopal,

If the class is singleton, you will object get the single object of it and if you do any updation in that object you will get that reflected at the place you are using, it can be in two copy of same module as well.

To make sure you are getting the single object of a singleton class for each copy of your module, you have to somewhere link this with the module’s object. To acheive this you can modify your Model class as:

package com.model { [Bindable] public class ModelLocator { private var _age:int = -1; static private var _instances:Dictionary = new Dictionary();

public static function getInstance(module_uuid:String):ModelLocator { if( !_instances[module_uuid] ) {

Problem in creating multiple instance’s of a module(which has a singleton ModelLocator) without loading a module again.

Posted in Adobe on April 25th, 2010 by Saba – Be the first to comment

Don’t use a singleton in this case. Directly update a variable local to the module. Just ensure that the right module instance is getting the callback. I faced a similar situation and this is what I did. Any better solution from anyone is most welcome.

On Apr 23, 12:19 pm, Gopal Singh wrote: