User defaults problem

Hi,
I have a couple of textviews and checkbox buttons in my interface and I would like to save their states in the user's preferences.
I'm trying to do it for the first text view but it doesn't work. Here is what I do in Interface Builder:
-Added a "User Defaults Controller" binding.
-Selected the NSTextView, in "Bindings" selected "User Defaults Controller" and checked the "Bind to" box.
-Changed the value transformer to "NSUnarchiveFromData".
-Saved and run from Xcode.
Now the application crashes on startup so I guess I must be doing something wrong...!?
Thanks for the help,
Smaon

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/UserDefaul ts/Tasks/UsingDefaults.html#//apple_ref/doc/uid/20000719-BAJFBAAH
Give that a read over
Is your app a Cocoa app or an AppleScript app?

Similar Messages

  • How to convert internal date to the format of user default setting

    In the BDC program, I need to convert the date, such as the sy-datum 20070427, to the format of user default that is defined in T-code SU01, such as YYYY-MM-DD or YYYY.MM.DD, and so on.
    The user format has 6 six kinds, and it is not good idea to write the code to process. So I look for the functions or CLASS method to process. I can use the function 'ITS_GET_USER_DEFAULTS' to get the user default setting of the Date format and Decimal notation.The problem is that I can not find the function or CLASS method to convert the internal date to user's date format.
    The function: CONVERT_DATE_TO_INTERNAL can not do it.
    The CLASS method: cl_abap_datfm=>conv_date_int_to_ext may be do it. But I do know how exchange the parameters, and fail to make it work finely.
    Is there the functions or CLASS method to process it?
    Thanks a lot!

    Hi John,
    create a veriable :
    data: v_date type char10.
    then after getting the date in YYYYMMDD format, write the following statement.
    WRITE SY-DATUM TO V_DATE.
    this might solve your problem.
    Regards,
    Hemant.

  • User Default Setting in CO11N

    Hi,
    In the Goods movements screen of CO11N, is there some sort of a user default setting where the layout can be customized based on user preference?
    Actually, I just have a problem with the material description because it's quite far from the material number.
    It's tedious to always drag the description beside the material number everytime I branch out to the Goods movements screen.
    Thanks in advance!
    Best Regards,
    Armie

    Armie,
    In the goods movement screen drag the material description as required and also arrange the other fields as required by you. Now scroll fully to the right side of the screen, there you would find a layout button click on that and save the layout as shown in the screen shot in the link...
    http://picasaweb.google.com/prasobh.sap.pp/Demo#slideshow/5345357547508821890
    Regards,
    Prasobh

  • Value conversion according to User default

    Hi,
    I have a Problem in a BDC. I am trying to populate pick quantity filed in my BDC ( Tcode VL02N ) the BDC works fine for a particular user default setting( NNN,NNN.NN ). But is the same program is used by some other user whose Default settings are different ( NNN.NNN,NN ) BDC fails .
    I need to convert the value based on user default before passing it to the field in BDC.
    pl. suggest me the solution .
    Thanks.
    Hitesh

    Hi
    Try to use the WRITE command before transfering the value to BDC table
    DATA: QUANTITY(20) TYPE C.
    WRITE <QUANTITY> UNIT <UNIT> TO QUANTITY.
    <BDC>-VALUE = QUANTITY.
    APPEND <BDC>.
    In this way the WRITE statament'll write the quantity in the format according to user default parameters.
    Max

  • ACS User database problem

    I have installed an ACS 3.3 on win 2003 server and I've encountered this problem:
    Durin a mudification of some user (group belongings)some of this users, have been duplicated and une of this assigned to default group.
    At this time these users (default group)is not possible to delete it.
    Can anyone help me?
    Tranks and Regards

    This appendix contains details on the Cisco Secure ACS command-line utility, CSUtil.exe. You can use CSUtil to import username, password, and group information all at once from a standard text file to back up and maintain your database.
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacs4nt/csnt26/usergd26/apimport.htm

  • CUP - Using several Parameters ID in User Default

    Hello everybody,
    I have a problem with using User Default section in CUP.
    In fact I want to use the User Default Mapping to define two different parameter ID in the SU01.
    For example: the Company Code (BUK parameter) and the Cost Center (KOS parameter).
    If I define two different User Default (one for the company code and the other for the cost center) with two different User Default Mapping Condition (Custom fields Company code with the good value for the first one and cost center custom fields for the second one) it doesn't works.
    It seems to use only one User Default even if the both User Default Mapping Conditions are different.
    Does anyone know how to define two different User Defaults that works together?
    Thanks in advance.
    BMW

    BEN,
       I have never tried this scenario. It seems to me that this might not work.
    Regards,
    Alpesh

  • Transport of User default printer (Parameters).

    Hi All,
    We have just upgraded our dev and qa system from 4.6C to 7.01 (ecc).  Our security team imported the users and profiles from Production system (which is yet to be upgraded). All the users and aurhtorizations are there in QA sytem and regresssion testing is going on.
    BUT The problem is...
    User default printer details are not same as production system they are blank in QA system. But we need this this default OutputDevice also to be transported.
    Is there any way to transport the default OutputDevice for each user? as as production?
    Please reply.
    Thanks

    Hi,
    Thanks for the reply.
    That the precise problem. USR01 of production is not equal to QA. I mean SPLD column of QA system is having blanks whereas in PRD it has the data.
    Need to know ... how we can bring this entries from PRD TO QA. Is there anyway ...

  • Using data source to update user defaults

    I have a default entry in my user defaults that is a list. Each item of the list is a list of records. I use the following code to delete an entry.
    on deletePlaylist()
    set tableView to table view "Playlist" of scroll view "Playlist" of window "Schedule Window"
    set selectedDataRows to selected data rows of tableView
    if (count of selectedDataRows) > 0 then
    delete (item 1 of selectedDataRows)
    set contents of default entry "specialList" of user defaults to contents of data source "Specials"
    register
    end if
    end deletePlaylist
    This code seems to work; when I open my plist the entry looks just as it should. The problem is that the next time I open my program, I get a 1728 error when I try to read that default entry.

    I'm not using pipes anyplace in my program.
    I'm reading my user defaults like this
    set theList to contents of default entry "specialList" of user defaults
    tell data source "Specials"
    set update views to false
    delete every data row
    repeat with a from 1 to length of theList
    set theRow to make new data row at end of data rows
    tell theRow
    set contents of data cell "thisDay" to thisDay of item a of theList
    set contents of data cell "thisTime" to thisTime of item a of theList
    set contents of data cell "thisFinalPlay" to thisFinalPlay of item a of theList
    set contents of data cell "thisPlaylist" to thisPlaylist of item a of theList
    end tell
    end repeat
    set update views to true
    end tell
    I'm writing my user defaults like this in my delete routine.
    delete (item 1 of selectedDataRows)
    set theList to content of data source "Specials" --I think this is the problem line
    set contents of default entry "specialList" of user defaults to theList
    When I open my plist in Property List editor, the pipes do not show. The entries are identical to those in the plist before it is screwed up. I think that when my program asks for user default thisList it is actually finding |thsList|. Does that make sense?
    When I add to the data source, I make the changes to theList and then rebuild the data source and write theList to user defaults. This works fine.
    If I could get the line number of the selected data row in the table view, I could use that index to delete the appropriate item from theList and then write theList directly to user defaults like I do when I add to the data source.

  • Open XML file with user default browser and not the default editor.

    Hi,
    I'm writing a java program that appends numerous XML files together. The result is a NEW well formed XML document. Since i have an XSLT that performs several UI modifications on this xml file, the file extension must remain '.xml'. I need to open this xml file with the users default web browser. The problem is that:
    Runtime.getRuntime().exec(cmd);
    ....opens the xml file with the users default program for opening xml files which in my case is Oxygen. I want to force java to open this xml file with the users default web browser and nothing else.
    I guess i need the Windows command to perform the 'open with' feature but i have no idea what that command is or how to find it.
    Any ideas?
    Thanks,
    Varun Singh
    Edited by: Jagara00 on Jul 2, 2009 3:49 PM

    sabre150 wrote:
    Jagara00 wrote:
    Your right, but my question relates to the java issue and not the XSLT aspect of the problem. I am looking for a java solution for reasons i will no go into here. You have lost me.Me too.
    People do not often ask questions (or make challenges or observations) idly for the sake of 'theory'. It is most useful to explain to the best of your ability.
    As to
    "Since the Desktop class was only released with SE 6 I am forced to find another alternative. "
    There is an 'alternative'. You can import it into a 1.5 project. It was available as a free standing API before 1.6 - through JDIC. See [https://jdic.dev.java.net/documentation/Examples.html|https://jdic.dev.java.net/documentation/Examples.html] for more info.
    Edit 1:
    To a later reply
    "Do u .."
    ..want to spell incorrectly when you get frustrated?
    "..do not wish to.."
    ..get any help? That is the way you are heading.
    Edited by: AndrewThompson64 on Jul 3, 2009 9:27 AM

  • Chrome (Windows NT 6.1 6.2) users reporting problems with loading and mouseevents - any insights?

    For several years now, I have created simple studies (I do psychological stuff) to run online, recruiting participants through Amazon Mechanical Turk (AMT). I have had no problems until recently (last 6 to 9 months). Now, some AMT users are reporting problems with stimuli loading or buttons not responding immediately when clicked (e.g., advancing to a new screen). What is common amongst all the users experiencing problems is that they use Chrome, and they also tend to be Windows NT 6.1 or 6.2 users running Flash Player 12.0. But not a single Firefox, Safari, or MSE user has ever reported an issue. I'm just looking for help in troubleshooting this problem. Again, the studies I run are incredibly simple (e.g., no videos being loaded from server, etc.), mostly word presentation where I record time and x,y coordinates of mouse movements as they respond to questions. Would attempting to publish for another target version of Flash Player help? The default setting is to publish the .swf and .html wrapper for Flash Player version 11.7. Any ideas? I also use version 13.0.1 of Flash Professional CC to create my studies if it helps. 

    This is helpful. Thanks. So it would be to my advantage to play around with something like SWFObject 2?
    http://www.adobe.com/mena_fr/devnet/flashplayer/articles/swfobject.html
    Or is there something else you would recommend?
    What I've been doing is a far cry from actual web development, but quite interested in learning more. This swfobject seems to get at what you are suggesting (I think). 

  • AE 5.2 Configuring User Defaults Parameter ID (PID) - maximum entries?

    Hello,
    I am configuring Access Enforcer 5.2 User Defaults and am setting up a number of PID parameters;
    I have successfully defined 23 out of 28 parameters and now fail whenever I attempt to add the 24 entry.
    Does anyone know if there is a limit on defining these parameters in AE 5.2? Has anyone exceeded 23 entries successfully?
    I am somewhat new to working with AE and am wondering if I am missing something
    Appreciate any feedback
    Thanks
    Jerry
    The following is the error message and iss somewhat mis-leading also:
    Internet Explorer cannot display the webpage
       Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
       What you can try:
         Check your Internet connection. Try visiting another website to make sure you are connected. 
         Retype the address. 
         Go back to the previous page.
         More information
    This problem can be caused by a variety of issues, including:
    Internet connectivity has been lost.
    The website is temporarily unavailable.
    The Domain Name Server (DNS) is not reachable.
    The Domain Name Server (DNS) does not have a listing for the website's domain.
    If this is an HTTPS (secure) address, click tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
    For offline users
    You can still view subscribed feeds and some recently viewed webpages.
    To view subscribed feeds
    Click the Favorites Center button , click Feeds, and then click the feed you want to view.
    To view recently visited webpages (might not work on all pages)
    Click Tools , and then click Work Offline.
    Click the Favorites Center button , click History, and then click the page you want to view.

    Hello Listeners,
    I have received feedback from SAP and they have identified this issue as a bug and are presently developing a fix. The tentative date is targeted for 3rd week of June for support pack GRC-SAE 5.2 SP9
    Following is the response from SAP:
        Hello Customer,
    The GRC Development Team has identified this as a bug and the fix has
    been targeted for the next support pack for GRC-SAE 5.2 SP9 and
    other relevant versions. The tentative release date of the mentioned
    Support pack is June 3rd week 2008.
    I am marking this question as "answered" although the fix is still forthcoming
    Jerry Synoga
    Ryerson
    630-758-2021

  • BSP user verification problem.

    hi,all
    We are facing a bsp user verification problem:
    We put the bsp page into a web dynpro iframe,and it is showing well. But after several tests using several users,Some problems are shown: when we use "USERA" to logon Portal,when we turn to the bsp page,it is shown like using "USERB".
    I do think SSO has no problem. We are using BW Portal.
    Something should be edited about the bsp application?
    Best Regards,
    delma

    Hi Delma,
    I guess a default user is defined for this BSP application.
    Please check it for BSP Application node in SICF.
    Regards,
    Anubhav

  • Yes another user with problem with Apple Mobile Device Support, I am getting the error message: Service 'Apple Mobile Device'(Apple Mobile Device) failed to start. Vertify that you have sufficient privileges to start system service....

    Yes another user with problem with Apple Mobile Device Support, I am getting the error message: Service 'Apple Mobile Device'(Apple Mobile Device) failed to start. Vertify that you have sufficient privileges to start system service....I hit retry and it came up again. I hit ignore and it prompted me to hit finish so Itunes can open.   I looked thru alot of these posts on here to try and resolve this problem myself but it's not working too well...I downloaded Itunes to my desktop so I can right click it with the program i downloaded called WinRAR. I extracted it and then went into the folder called Itunes64setup. I saw the file called AppleMobileDeviceSupport64 in there so I began to try and download it on it's own. Well that didn't work as I planned and got this error message:
    Apple Mobile Device Support wasn't installed on your computer. The installer encountered errors before Apple Mobile Device Support could be configured. Your system has not been modified. To retry these operations at a later time,please run the installer again.
    Well I tried to run it again and came up with the same message...I see that some people got great support to help them so I am hoping someone can help me as well. I know "b nor" is very qualfied and hopefully can help me! Please advise what I can do. Thank you

    Hi Iss9243,
    Welcome to the Support Communities!
    You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue.  Hope it helps ....
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Judy

  • Web Dynpro SRM 7.0 - Access Shopping Cart One Screen User Default Settings

    Hi all,
    In my current project I have a requirement which includes to validate the user default values on shop on one screen functionality, my question is, how can I access to this information? In web dynpro there's no reference to this information and in addition is not stored in the database as is only "available" during the current Shopping Cart creation.
    Many Thanks in Advance,
    Sara.

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Storing user defaults of Web Dynpro application on portal

    Hi folks,
    I am trying to develop Web Dynpro application that runs in an iView on a portal. I would like to remember certain user defaults for this application (e.g., user default plant). User also has control over this value, so whenever they change it, the value should be update on a backend as well.
    My first thought was to use PCD, but I am not sure how to do that - all the code examples for I found for PCD looked like they were created for portal application, not Web Dynpro ones.
    Anybody here actually done anything similar?
    Edited by: Alexei Isaev on Jan 29, 2008 8:20 PM

    Hi Alexei,
    If you need to store default values for a portal application, you may consider your development in Web Dynpro for ABAP.  I have not come across application level personalisation yet in Web Dynpro for Java, unless someone else can throw some light here.
    Regards,
    Subramanian V.

Maybe you are looking for