Should i use @properties without ivars?

Previously all @properties were declared with ivars. But now I found out that even in templates for Xcode 4.1 (Navigation-based App template) they use only properties for window and navigationController in NameAppDelegate.h without declaring ivars.
Also I found the same question here http://stackoverflow.com/questions/3336922/whats-the-purpose-of-an-ivar-when-a-p roperty-exists
@shosti says that it works for new runtime systems.
So the question is: is that an Apple recomendation?

I found about it more in Apple docs
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Objective C/Chapters/ocProperties.html
The last topic - Runtime Difference

Similar Messages

  • Start Admin Server using NodeManager without 'boot.properties'

    Hi All,
    I am trying to stat Admin Server using nodemanager through below code.
    public static void main(String args[]) {
              try{
              System.out.println("Starting...");
              InteractiveInterpreter  interpreter = new WLSTInterpreter();
              interpreter.exec("nmConnect('weblogic', 'weblogic123', '10.0.0.100', '5556', 'domain1','D:/oracle/MiddleWare/user_projects/domains/domain1','ssl')");
              interpreter.exec("nmServerStatus('AdminServer')");
              interpreter.exec("nmStart('AdminServer')");
              interpreter.exec("nmDisconnect()");
              System.out.println("End.");
              }catch(Exception ex){
                   System.out.println("Hello...");
                   ex.printStackTrace();
         }Everything is working fine but we need a property file 'boot.properties' under location 'Bea Home/user_projects/domain/domain1/servers/AdminServer/data/nodemanager' having username and password.
    Please let me know if there is any way to start Admin Server using nodemanager without using 'boot.properties' file.
    Is there any way to provide username and password directly to 'nmStart()' method.
    Please let me know...
    Edited by: Rajesh Panchal on Jun 14, 2011 1:56 AM

    Hi Rajesh,
    Maybe you are looking for something like:
    wls:/nm/IDMDomain> pr=makePropertiesObject("username=weblogic;password=weblogic0");
    wls:/nm/IDMDomain> nmStart('AdminServer',props=pr);
    Then, in your source code it should be something like:
    interpreter.exec("pr=makePropertiesObject('username=weblogic;password=weblogic0')");
    interpreter.exec("nmStart('AdminServer',props=pr)");
    Hope it works.
    -Cris

  • After upgrading from Mavericks to Yosemite I can no longer find in Mail the icon (looks like the Add To Contacts icon without the   mark) I used to press in order to obtain an e-mail address from my contact list. What procedure should I use now in or

    After yesterday upgrading from Mavericks to Yosemite I can no longer find in Mail the icon (looks like the Add To Contacts icon without the + mark) I used to press in order to obtain an e-mail address from my contact list. What procedure should I use now in order to quickly add an address to an e-mail that I wish to send?
    Bob

    On the right of the To: field you will see a circled plus sign:
    Click it.

  • Should I use JSP,JSTL,SERVLETs without a framework?

    Hi Guys
    I'm making a multi player browser game. The game will have some forms to setup data into the database and the player will be able to check other players data.
    I will load the players data from the DB into a Bean when the application starts and then just get the other players information from DB when and if asked.
    I'm planing on doing it as MVC2 using JSP, JSTL, SERVLETs, BEANs
    Would you recommend me to use Struts for example? should I just use it without any framework?
    I read a lot about Struts and can't really see what it can bring to an application like mine. I can use the i18n easily with JSTL and for few validation of forms I don't know if it's worth it.
    What do you think? (-:
    Thanks in advance
    (-:

    If your going to use MVC2 then I would use a framework, otherwise where are you going to get your MVC from, were you planning on writing an MVC yourself?

  • Hi! I am using Snow Leopard 10.6.8, iTunes 10.6.3 on my Intel i3 iMac and should I purchase the latest iPad, would I be able to set up, synch and use it without iCloud? Regards Neil

    Hi! I am using Snow Leopard 10.6.8, iTunes 10.6.3 on my Intel i3 iMac and should I purchase the latest iPad, would I be able to set up, synch and use it without iCloud? Also, would iWork files be interchangeable between the two bevices? And...could information from the Mac be transferred into iBooksAuthor? Regards Neil

    You may need to update iTunes to iTunes 11 but you can do that running Snow Leopard 10.6.8. I would recommend running iTunes 11 anyway. It is a bit different in the user interface, but it works the same that it did in 10.6.3.
    You can transfer iWorks files back and forth without iCloud but you will need to use file sharing with iTunes. However, you will have to purchase the iPad versions of those apps becuse the Mac versions will not work on the iPad if you were thinking about using the Mac apps.
    You can read about file sharing here
    iWork for iOS: About iTunes File Sharing
    Sorry, but I know nothing about iBooks Author.

  • How  to read Component profile.properties without using CAF?

    Do you know how to read DC WebDynpro Component profile.properties without using CAF.
    A Component.profile.properties is located under
    Scr/components/fullcomponentname/
    Thanks, Best regards
    Peter

    import com.sap.tc.webdynpro.services.sal.config.api.IWDConfiguration
    import com.sap.tc.webdynpro.services.sal.config.api.WDConfiguration;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObject;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPartType;
    WDDeployableObjectPart myComponent = WDDeployableObject.getDeployableObjectPart
      "mycompany.com/myapp~mydc" // name of DC
      "com.mycompany.myapp.mydc.MyComponent" // full component name
      WDDeployableObjectPartype.COMPONENT
    IWDConfiguration config = WDConfiguration.getConfigurationByName
      myComponent
      "profile.properties" // not sure, try "profile" as well
    Exception handling ommited.
    Hope this helps. Just wondering what's for?
    Valery Silaev
    P.S. full disclosure: CAF developer, author of PropertyConfigurable components concept

  • Can I insert pretest questions as knowledge checks between content slides and before a graded quiz without affecting the scoring of the graded quiz? Help documentation states that they should be used before a course begins.

    Can I insert pretest questions as knowledge checks between content slides and before a graded quiz without affecting the scoring of the graded quiz? Help documentation states that they should be used before a course begins.
    If I use both pretest questions and graded questions, can I also include remedial with return to quiz for both?

    Sorry, but I gave two workarounds: my preference is custom question slides, but you can also have questions slides where you do not add the score to the Total score. They will not be reported to the LMS and can act as Knowledge slides. Only some quizzing system variables can count all question slides, including the Knowledge slides, but the core variables (score, maximum score, percentage) will be correct. Here some links to my blog, that could help you:
    System variables in Captivate 8 - Captivate blog
    Intermediate Score Slides - Captivate blog
    That each SCORM module can have only one quiz is a SCORM requirement, not a a Captivate specific feature. Camtasia is bit difficult to compare, it is not a fully blown authoring tool although the best video screen capture tool around (video is non interactive by definition). I don't use Storyline, but cannot imagine that they shouldn't create SCORM-compliant files.

  • I want to save 2 users game data now, use Properties?

    hi, i just realized that by using "Properties" to save a users game data like the following
    experience=2000;
    level=3;
    zone=forest;
    it will write to the text file, but i just realized, when another user goes to play my game, how do i save his game in another spot, can i still use Properties? otherwise, the new user will get the previous user's saved data. and just when i was all happy about saving ONE users data. HAHAHA. :-D

    silverglade wrote:
    its a simple text based game. ive already written one in C++ it will be no problem in Java. but im a bit pissed off that people have a problem with me using their code that they FREELY gave me in the forum to help me. if they have a problem with it, they should give it out in the first place. i got my questions answered and thats what i wanted today. i just gave navy coder 10 duke stars for his work, and my thanks. thats all i can give. i gave the other guy who wrote my code 8 duke stars, and my thanks. now that im using the code, why are they bitter and angry at me after they freely gave it to me , i never said I wrote the code myself. so stop being bitter at me. im just trying to get my questions answered, and yes when i write the rest of the game which is not that hard, i WILL be solving my own problems. youre just seeing a major problem that is PART of my game im having. derekI think you've misunderstood. Nobody's pissed off at you, well, certainly I'm not, and I can't see that anyone else is either. But you just seem to be relying on the forum to write the bits you can't, rather than put in a bit of effort to do it yourself. That's not very satisfying. You were going to use a database for this, and thank god I talked you into using Properties instead, because some poor guy would now be writing reams of JDBC code and SQL for you, and telling you how to install and configure MySQL and Connector/J. I prefer teaching people to fish rather than giving them dinner, it's a bit disheartening when people don't go for that approach. But nobody's pissed off at you. In all seriousness, I think you've been working away at this all weekend without much of a break and it's getting to you. Do yourself a favour and take the night off. It'll all seem so much easier when you've been away from it for a bit

  • Can we change VI properties without actually opening it?

    Hi
    I am making executable out of my VI. I wished that the window should close once we exit the program through exit button. Hence I used "Quit Labview" function from Application Control pallette. At the same time inadvertantly I have set the VI properties as "Run when opened" and also disabled "Show run button" and "Show Abort button" options. Now when I open the VI, it starts running, it doesn't show run or abort buttons and when I press exit button to quit the program, it closes the Labview. Now I am unable to edit it's properties. Can any body tell me if there is any way of editing VI properties without actually openig the VI? Thanks and regards.
    Sreedhar Nyapathi

    Alternatively, if you have LabVIEW 8.0 or higher, open the VI from within a LabVIEW project. It will open in edit mode.
    LabVIEW Champion . Do more with less code and in less time .

  • What type of hard disk should I use if I want to use it on mac and windows?

    Hey Forum,
    I am using windows xp on my macbook (snow leopard). I came across some dealers who say that there are hard disks for mac only and for both mac and windows. So, I wanted to buy a hard disk so that I can use it both on mac and windows xp, so what type of hard disk should I use? Must I partition into 2?
    or are there any harddisk in the market which is compatible for both mac and windows xp without screwing up the format(NTFS/Mac OS X Journaled)? Pls look into this matter and help me with it.
    All of your replies and suggestions is much appreciated.
    Thank you.
    Ala.

    Run, don't walk, from that dealer! and never look back
    Once in a very long while Apple will have customized firmware on drives, and it is possible to find SCSI/SAS or drives that are destined to be used with high end storage controllers.
    But that is the exception that makes the rule.
    SATA is SATA. Though.... there are now SATA III drives that don't work in XP, or that need a jumper, and Seagate and some drives have managed to deliver firmware that has caused trouble... and Apple has had to issue firmware updates to help compatibility....

  • I feel I must move beyond iMovie, what program should I use ?

    I have been happily using iMovie and iDVD from versions 1 through 6.  iMovie 08 was so bad that Apple made iMovie 06 available as a free download for buyers of iMovie 08. The newer iMovies were better, but they seemed “dumbed down” (even for me).  Now, I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    So, I have continued to use iMovie 06 and iDVD 08 (they seem to work fine under OS 10.9.4).   iMovie 06 is now 8 years old!  I feel compelled to move forward. A lot of my work is DV.    In the past, most of my source material came out of S-Video.   I used a Canopus ADVC300 analog-to-digital converter that gave good results.   Going forward, I will have more video utilizing Component Video, or HDMI.
    I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD.   It is hard for me to move from iMovie and iDVD.  I never read the manuals for either program, yet,  I was able to produce DVDs with nice menus and overall quality close to Hollywood.
    It looks like Final Cut Pro X 'can' make a DVD directly without other software.  However, from what I have seen on YouTube the result is primitive compared to what iDVD was doing 10 years ago.
    Adobe Premiere elements 12 can make nice DVDs and Blu-ray's directly.  I have no problem with using a separate program to make DVDs but I haven't got a clue how to do that with Final Cut Pro X.   I suppose I can still use iDVD, but now I'm back to using discontinued software.
    I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    Frankly, one motivation for choosing Final Cut Pro X, is the excellent, compassionate and understanding support that the kind people on this very forum provide.  So, what program should I use?

    Ziatron wrote:
    ...  I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    .. I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD. ...
    ... I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    to turn perspective for a second by 180°:
    Why do you want to switch to a new editor anyhow?
    • iM-a never did discs - that was iDVDs job = no big change in your workflow
    • iDVD is still working, and aside obsolete, complex and $$$$ DVDSP (part of obsolete FC/p) or Encore (part of Adobes CC rent package) your only option left to create disks on MacOS is indeed iDVD (...ok, there's Toast and Burn and some weird 'shareware'-stuff...)..
    • iMovie-b supports the new HDef formats (AVCHD) - you mentioned converters and DVDs = no HDef in use, in your habitat, correct?
    • if you don't need FCPX' bling-bling (I can't imagine that ) - why not using FCPX-lite = iMovie? 15$ ...
    • chapters could be done in iDVD - just to mention that ............
    • AP and FCPX are following very different concepts in usage - my personal preference is 200% on FCPX, … I was one of the loudest nay-sayers, when iM08 araised, meanwhile, FCPX is my dream!! AP (tested it) is way too complex, crowded, 'optionalized' and did I mention 'complex' for me. A bit like Windows vs. MacOS: 'everything goes' (incl. getting lost) vs. 'convenience' (incl. restrictions) ... After 2y of practice, I'm editing my weekly hobby-projects with 6-cam-Multicam, incl. tons of  custom graphics, slow-mow, effects (soccer games) in less than 2h ... awesome!
    summary:
    • why switching?
    • use iMovie10 + iDVD
    • Premiere (or Premiere Elements!) and FCPX are both avail as fee trial ... test  it - but you need iDVD anyhow
    • 'disks'  is a dwindling niché, for years!- consider to switch to 'other' distribution options
    ... what are 'chapters' anyhow??... (kid din'!)

  • How do i sync apps to my iPhone 4S using itunes without losing aps already installed on the phone but with a different apple ID, and i dont have the apple ID??

    how do i sync apps to my iPhone 4S using itunes without losing aps already installed on the phone but with a different apple ID, and i dont have the apple ID??

    How have you managed to get apps on your phone that are tied to a different and unknown AppleID?
    If these apps were not purchased by you, having them is effectively software piracy and you should purchase them using your own AppleID if you want to keep hem.

  • Is it possible to delete extended properties without knowing the id?

    Hello,
    Can you delete any custom extended properties without knowing their ID?
    I took over managing a feature that used EWS to send emails to customers.The current code creates a new GUID, and thus new Extended Property, every time an email is sent.
    // Create a custom extended property and add it to the message.
    var myExtendedPropertyDefinition = new ExtendedPropertyDefinition(Guid.NewGuid(), "MyGuidId", MapiPropertyType.String);
    mail.SetExtendedProperty(myExtendedPropertyDefinition, "MyGuidId");
    // Send and save a copy
    mail.SendAndSaveCopy();
    Is there a way to delete any of the custom extended propeties without knowing the IDs?
    Thank you

    No you can't do that in EWS you need to know the details of the property you want to Read/Write or delete. EWS has no method of enumerating all extended properties either you would need to use MAPI to do this.
    >>The current code creates a new GUID, and thus new Extended Property, every time an email is sent.
     I'd question the design of this what where they trying to acheive ? Why not have ths same property with a different Value ? else using an X-header would be better idea at least then it will persist ouside of your Exchange infrastructure and even
    inside would be more discoverable.
    Cheers
    Glen

  • What type of vga cord should i use?

    I just purchased a mac mini and it is on its way. I have a 22'' memorex lcd tv and it has a VGA plug in. What type of vga cord should i use? Theres male to male and theres male to female. Which cord should i use and does any1 know a site i can order it off of?
    Mac Mini   Mac OS X (10.4.8)  

    i just did a quick google search for for dvi to vga cables, without the use of an adapter...
    http://www.google.com/search?hl=en&q=dvito+vga+cable-adapter&btnG=Search
    the first site that came up...
    http://www.datapro.net/products/1145.html
    these cables would allow you to hook up the monitor without using the adapter... would just save a little bit of space if depth is at all an issue, or the visibility of the cable sticking out that far back.

  • What type of blank DVD should I use to record photo images that are on my drive E

    I own a HP Pavilion dv5000 with an RW DVD + R DL multi recorder.  My question, which type of blank DVD should I use to record images that are on my drive E?  I can record without problems on a CR-R but when I try a blank DVD-R it won't work.  Please advise.

    Hi,
    Back to the good old days, HP supported only DVD +R discs, some vendors supported DVD -R discs. Now all vendors support both. You may want to try blank DVD +R. Hope this works. Please post back the result.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for

  • Freeze Pane Property of Excel in RTF template for XML Publisher Report

    Hi all, I have created RTF template and it's output type is Excel. I want to apply Freeze Pane Property of Excel in rtf template so that it can be applied to Excel Output. Please let me know any information regarding this ASAP. Thanks, P.A.

  • IOS 5 Messages bug in group text

    Since upgrading to iOS 5, I can no longer successfully send a group message when at least one device is an iPhone/iPad etc. and at least one device is NOT an iPhone/iPad etc. When I try it, the non-iPhone devices receive a blank message. By this I do

  • Change image contrast

    Hi, I need to change image contrast, that code working for .bmp image only. public static BufferedImage rescale(BufferedImage indexed,                float scaleFactor, float offset) {           System.out.println(indexed.getHeight());           Inde

  • Project Serial Number column in Project Server 2013 (PWA)

    Hi All, Whenever any new projects are created on Project Server 2013, they are arranged automatically by Alphabetical order. So i would like to know or need support through which i can create serial number column in Project Center so that projects ar

  • Photo Booth Lags

    I just got mac os x mountain lion today. There are lots of improvements but photo booth didn't didn't work as well as it did on snow leopard. It constantly lags and the sound is not there. Even on playbaack the video is very jagged and the video spee