Could you serialize ANY ObjC object, even those created from scratch ?

I would like to create a custom object that holds a UIImage, CLLocation, two ints and to serialize that single object that wraps all these. Can this be done ? Or serialization of this "container" will fail because this object include ints which cannot be serialized.
Message was edited by: Bracer-J
Message was edited by: Bracer-J

The NSCoder class defines some methods for scalar archiving, for example -encodeInt:forKey:

Similar Messages

  • How do you test any SAP objects before a transport to the production server

    How do you test any SAP objects before a transport to the production server?

    Hi Rama Krishna,
       The actual process is develop the object in development system and unit test there with the available data.
      Then move it to Quality server where the data will be the actual replica of production and where the integration testing and ened to end testing happens and also the user acceptance testing  happens there.
    and once everything is found fine there then it is moved to production system.
    Award points if this is helpful.
    Regards,
    Ravi G

  • Forgot my apple ID , and need a hint on my associated email so i can sent a reset password , and the worst thing in apple ID forgot password page that if you typed any apple id even if its wrong it gives you that email has been sent !! how come !

    forgot my apple ID , and need a hint on my associated email so i can sent a reset password , and the worst thing in apple ID forgot password page that if you typed any apple id even if its wrong it gives you that email has been sent !! how come !!
    so please if anyone got any idea of how to get the hint on the mail ( i used to remember there is a hint )

    If all you did was rename your ID, you can go to Settings>iCloud, tap Delete Account, choose Delete from My iPhone when prompted, then sign back in with your renamed ID.  Deleting the account only deletes the account and any data you are syncing with iCloud from your phone, not from iCloud.  Provided you are signing back into the same account and not changing accounts, your data will be synced back to your phone when you sign back in.
    If, however, you are changing to a new account with a new ID, choose Keep on My iPhone when prompted.  Then choose Merge when you sign into the new account and turn your iCloud syncing back on to upload your data to the new account.
    Before deleting the account, save you photo stream photos to your camera roll (tap Edit, tap all the photos, tap Share, tap Save to Camera Roll).

  • HT1473 Could you remind me how to synch music backl from my ipod to my compputer - my ipod has my whole collection but my laptop has been upgraded and i lost my library

    Could you remind me how to synch music back from my ipod to my computer - my ipod has my whole collection but my laptop has been upgraded and i lost my library

    Follow the steps given here...
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • HT4009 I make an In-App purchase and my device fails to complete the purchase. Could you do something about it and prevent it from ever happening again?

    To iTunes Store
    I've being trying to make an In-App purchase and it doesn't work. I get this message that says the pruchase can't be completed. Could you do something about it and prevent it from ever happening again?
    Sincerely
    Cameron

    We are itunes users just like you.
    You should contact itunes support

  • How many view object instances can create from Single Entity ?

    Hi All,
    JDev Ver : 11.1.1.5
    I want to How Many view objects can i create from the single entitiy ?
    Is there any limit ?
    Thanks,
    Gopinath

    No, there is no limit

  • COuld you tell me how can I merge duplicates from my iphoto in my macbook?

    Hi I have a problem with duplicates in iphoto, could you help me with this?

    Hi I have a problem with duplicates in iphoto, could you help me with this?

  • Adobe, could you please make this forum even slower...

    ... so that I really have enough time to complete the post-processing of at least one image between two subsequent post loadings?.
    Thanks in advance.

    --OB

  • How to bind UI component to a view object which is created from a SQL query

    I am using JDeveloper 11.1.1.2.
    I created a method in my ApplicationModule to create an instance of ViewObject dynamically based on a "voCode" passed in :
    public ViewObject loadVO(String voCode) {
    ViewObject viewObject = findViewObject(voCode);
    if (viewObject == null) {
    viewObject = createViewObject(programCode);
    return viewObject;
    I created a Client interface for this method and refreshed the data control of the ApplicationModule.
    From the "Oracle JDeveloper 11g Handbook", I should be able to create a tree binding and a methodIterator executable for the "loadVO" method via the data control of the AM.
    I tried to add the binding manually to the page definition of my jspx page as I like to see if I can replace an existing binding with this new binding.
    I was not able to add the binding as the "Create Tree Binding" required both the "Root Data Source" and "Tree Level Rules" to be specified.
    I could specify the "Root Data Source" to point to the "loadVO" and corresponding parameter but not able to add any rule.
    When I clicked on the "+" icon to add rule, nothing happened that allowed me to specify the rule (if I know what rule I need to add).
    How should I bind the application module method "loadVO" so that it can be exposed in the Data Control to provide the data for a UI component like dynamic table?
    On the other hand, I could create the "methodIterator" first for the AM method "loadVO" but I wasn't able to create a tree binding to reference the "methodIterator".
    Is it possible to invoke the loadVO method with specific parameter value via the "methodIterator" from a bean method?
    Edited by: pyin_amec on Jan 25, 2010 3:57 PM
    I corrected the subject line and change my question to better reflect the problem I tried to solve.
    Edited by: pyin_amec on Jan 26, 2010 7:41 AM

    Hi,
    This worked for me .. I created a inputtext area where I can enter a query and execute ..
    Hope it helps..
    AM Impl
         public void createVoWithQuery( String pQuery )
              ViewObjectImpl vo = null;
              if( findViewObject( "DemoVo" ) != null )
                   findViewObject( "DemoVo" ).remove();
              vo = ( ViewObjectImpl )createViewObjectFromQueryStmt( "DemoVo", pQuery );
              //  vo.setKeyAttributeDefs( new int[]{0} );
              vo.executeQuery();
         @Override
         protected void prepareSession( Session session )
              super.prepareSession( session );
              if( findViewObject( "DemoVo" ) == null )
                   createViewObjectFromQueryStmt( "DemoVo", "Select 1 from dual" );
         }Page Def
    <executables>
        <variableIterator id="variables">
          <variable Type="java.lang.String" Name="createVoWithQuery_pQuery" IsQueriable="false"/>
        </variableIterator>
        <iterator Binds="DemoVo" RangeSize="25" DataControl="AppModuleDataControl"
                  id="ViewObj1Iterator" Refresh="deferred"/>
      </executables>
      <bindings>
        <tree IterBinding="ViewObj1Iterator" id="ViewObj1">
          <nodeDefinition Name="Dummy">
          </nodeDefinition>
        </tree>
        <methodAction id="createVoWithQuery" RequiresUpdateModel="true" Action="invokeMethod"
                      MethodName="createVoWithQuery" IsViewObjectMethod="false"
                      DataControl="AppModuleDataControl"
                      InstanceName="AppModuleDataControl.dataProvider">
          <NamedData NDName="pQuery" NDType="java.lang.String"
                     NDValue="${bindings.createVoWithQuery_pQuery}"/>
        </methodAction>
        <attributeValues IterBinding="variables" id="pQuery">
          <AttrNames>
            <Item Value="createVoWithQuery_pQuery"/>
          </AttrNames>
        </attributeValues>
      </bindings>page
    <af:panelStretchLayout id="psl1" startWidth="0" topHeight="100px" bottomHeight="0">
              <f:facet name="center">
                <af:table rows="#{bindings.ViewObj1.rangeSize}"
                          fetchSize="#{bindings.ViewObj1.rangeSize}"
                          emptyText="#{bindings.ViewObj1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          var="row" rowBandingInterval="0"
                          value="#{bindings.ViewObj1.collectionModel}"
                          selectedRowKeys="#{bindings.ViewObj1.collectionModel.selectedRow}"
                          selectionListener="#{bindings.ViewObj1.collectionModel.makeCurrent}"
                          rowSelection="single" id="t1" partialTriggers="::cbEx">
                  <af:forEach items="#{bindings.ViewObj1Iterator.attributeDefs}" var="def">
                    <af:column headerText="#{def.name}" sortable="true" sortProperty="#{def.name}"
                               id="c1">
                      <af:outputText value="#{row[def.name]}" id="ot1"/>
                    </af:column>
                  </af:forEach>
                </af:table>
              </f:facet>
              <f:facet name="bottom"/>
              <f:facet name="top">
                <af:panelFormLayout id="pfl1">
                  <af:inputText value="#{bindings.pQuery.inputValue}"
                                label="#{bindings.pQuery.hints.label}"
                                required="#{bindings.pQuery.hints.mandatory}"
                                columns="60"
                                maximumLength="#{bindings.pQuery.hints.precision}"
                                shortDesc="#{bindings.pQuery.hints.tooltip}" id="it1" rows="2">
                    <f:validator binding="#{bindings.pQuery.validator}"/>
                  </af:inputText>
                  <af:commandButton actionListener="#{bindings.createVoWithQuery.execute}"
                                    text="ExecuteQuery"
                                    disabled="#{!bindings.createVoWithQuery.enabled}" id="cbEx"/>
                </af:panelFormLayout>
              </f:facet>
            </af:panelStretchLayout>

  • Is there any way to make files created from xml plugin (Incat) to ignore the plugin

    I originally created my catalog files using CatalogStudio database which then created the files via xml. We had so many files become corrupt in the CatalogStudio database that we decided to quit using it and just create our files directly into Indesign. Unfortunately when we reset our system to operate on the original settings we deleted the old CatalogStudio software. Now when we open the Indesign files they look for the Incat plugin. We can still open them but now functions such as page numbering won't work. Does anyone know a way of getting around this problem?

    I tried to mark your answer as correct because it worked. I hesitated to contact the company which had set up the xml application because we had ended our relationship but I, on your advice, I did anyway. They were very nice, sent me the plugins with instructions how to install and it fixed everything. Unfortunately, when I tried to mark your answer no selections were available to me.
    Thanks though,
    Danni

  • I could not run any java application

    I could not run any application program( even thouht the simplest one such as helloword). It would give NoClassDefoundError as:
    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
    Press any key to continue . . .
    I use text pad editor. First I compile it, there is no error. But when I try to run ( by click run java application program button ) it gives me the same error message.
    I also always have compile error such as no class define when I try compile the program which need to import user defined class from differerent package. ( even though I did put all the classed in the same directory and also use import statement)
    I did try to run many other applet programs which do not use any user defined class, in this case every thing work fine and I could run the program.
    That mean I could run simple applet program but not application, also i always have compile error when ever I tried to import user defined class.
    I'm afriad there is some thing wrong with the sdk and java enviroment, therefore I did try to uninstall the program and redownload from the web( I try both version 1.3 and 1.4 many time, and I did check the size of the application when I finish down load) but I still got the same problem.
    My computer operating system is WinMe.
    I appreciate any help

    You probably have to set some settings for text pad. It looks like the java interpreter could not find your class, which most likely means that the classpath setting is not set properly.

  • I could not run any application program

    I could not run any application program( even thouht the simplest one such as helloword). It would give NoClassDefoundError as:
    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
    Press any key to continue . . .
    I use text pad editor. First I compile it, there is no error. But when I try to run ( by click run java application program button ) it gives me the same error message.
    I also always have compile error such as no class define when I try compile the program which need to import user defined class from differerent package. ( even though I did put all the classed in the same directory and also use import statement)
    I did try to run many other applet programs which do not use any user defined class, in this case every thing work fine and I could run the program.
    That mean I could run simple applet program but not application, also i always have compile error when ever I tried to import user defined class.
    I'm afriad there is some thing wrong with the sdk and java enviroment, therefore I did try to uninstall the program and redownload from the web( I try both version 1.3 and 1.4 many time, and I did check the size of the application when I finish down load) but I still got the same problem.
    My computer operating system is WinMe.
    I appreciate any help
    Ha Tran

    When I was trying to write my final project(Client/Server Application with java & CORBA)I could not compile The simplest program like HelloWorld for Idl(Errors like yours).After two month accidentally I write set classpath= and HelloWorld start to work.I start to read the tutorial again,and I see that sun say it in the tutorial but I don't understand it because I read it fast.So it was somthing wrong with me not with sun.They work very hard.I like to work in sun in future.

  • My MBP suddenly shows the message  Wifi: no hardware installed - Could you please help me?

    My MBP suddenly shows the message - wifi: no hardware installed. Could you please help me?

    try this help from Apple (is officially written for an older version of OSX, but goes for Mavericks as well.)
    If that does not help, try this

  • Is there a way to automatically build measure object with SUM(col_name) from INT DB column?

    Hello,
    I have a workflow that needs to be repeated every month and I'd like to optimize it.
    1. DB table in SQL Server 2008 looks something like this:
    TABLE [CONTRACTS_GCO_LVL2](
      [CONTRACTS_BP_ID] [varchar](50),
      [Flag 1] [int] ,
      [Flag 2] [int] ,
      [Flag 3] [int] ,
    2. I bring this table into my BOE IDT 4.0.3 and drag it into object folder. All INT columns become dimensions. This is not what I want. These are 1/0 flags for me and I need them to be measures with SUM aggregation.
    3. I select all these INT sourced dimensios and right click on them with "Turn into measure with aggregation function - SUM"
    The problem is that step #3 is unbelievably slow. I need to spend hours doing this as I have thousands of these flags. I end up selecting all dimensions from one screen and converting them at the same time. This takes 4-5 minutes. IDT runs on a Win 2008 R2 Enterprise server with 32 GB RAM and 4 CPUs.
    In Universe Designer there used to be external strategies that allowed some customization of how the objects get automatically created from DB tables. I know there are no strategies in r4 (External strategy for tables)  but is there anything else to make this process faster?
    Thank you all!
    Natasa

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • Object alignment when creating form

    I'm creating my first form.  It's rather long and has many checkbox options.  I have two problems with this.  First, the distance between selections seems set, so making a series of choices on the same line can't be done.  For example, on the MS Word document I have choices for Marital Status: Married    Single    Separated    Divorced    Widowed, etc.....  Can't seem to get the items close enough.  Secondly, if I attempt to shorten the label portion of a checkbox it realigns everything above it.  Please help!

    christm31 wrote:
    Hi
    I'm trying to create a Form Letter in Reports 6i for the first time.
    When I create it, it runs successfully in Reports but when I try and save it anywhere, I get the messages - rep-1051 Unable to save document and rep-1070 Error when opening or saving a document.
    This is a new report created from scratch. I have tried building it bit by bit and it seems that in the form letter layout, it likes it and will save up to a certain amount of text but when I go over that amount (which I need to do), I'm getting this error.
    Any ideas?
    Thanks
    Hi Martin
    It's all about temporary space issue. I have the problem with reports 10g.
    what i do.
    Create a folder in a drive, where good amount of free space available.
    then update registry setting of
    REPORTS60_TMPwith the newly created folder path
    Hope this works..
    Hamid

Maybe you are looking for

  • How would you find images without a tag?

    II just installed Elements 8. have several folders of images. none of them have tags. I would like to add tags as I add folders. Seems like it would help to find the images that do not have any tags and then associate the correct tage wiith the image

  • After converted a Words file to PDF.  The picture / logo turned blurred.

    After I converte a Words file to PDF, the picture / logo turne blurred.  Please advise how I could fix it.

  • Is this possible in AppleScript and if so how ?

    I am trying to make an app that opens AppleScript and types in things.  I then want the AppleScript that the other Applescript wrote to save as an application, and rename it.  Is this possible and if so, can you give me an example?

  • Adobe PDF 8.0 shows up in Add Printer Window

    According to some KB documents Apple changed some things in 10.6 regarding PDFs. This is from Adobe. "Mac OS X Snow Leopard (v10.6)'s enhanced security features prevent Adobe's PDF Printer from functioning as it did in previous versions. As a result

  • Subscription based ios App

    I have a confusion regarding subscription in the app. I want to upload my app to the app store with some price tier. I want user to pay every month some subscription fee to use complete functionality of the app. I have seen apps that are available as