Top "Retain" questions

Selected value for JSP drop down using JSTL

I have SortedMap in Servlet to populate drop down values in JSP and I have the following code SortedMap<…

jsp drop-down-menu jstl retain
capturing self strongly in this block is likely to lead to a retain cycle

How can I avoid this warning in xcode. Here is the code snippet: [player(AVPlayer object) addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(0.1, 100) queue:nil …

objective-c cocoa-touch automatic-ref-counting avplayer retain
Objective-C 101 (retain vs assign) NSString

A 101 question Let's say i'm making database of cars and each car object is defined as: #import <UIKit/UIKit.…

ios objective-c iphone nsstring retain
Objective C release, autorelease, and data types

I'm new to memory managed code but I get the idea pretty well. On taking my app through the leaks …

iphone objective-c xcode release retain
Codeigniter set_value() and populate the form value

My form field looks like this echo form_label('Quantity', 'quantity'); echo form_input('quantity', $quantityx); I modified it to …

php forms codeigniter retain
@property definitions with ARC: strong or retain?

Using Xcode 4.2 and ARC, I notice that the auto-generated code for an NSManagedObject still reads like this for properties: @property (…

objective-c properties automatic-ref-counting nsmanagedobject retain
What is the difference between "copy" and "retain"?

What is the difference between copy and retain for NSString? - (void)setString:(NSString*)newString { string = [newString copy]; }

objective-c nsstring copy retain
property "assign" and "retain" for delegate

For iOS developers, delegates are used almost everywhere. And seems like that we need to use "assign" instead of retain …

ios delegates properties retain assign
How can I retain HTML form field values in JSP after submitting form to Servlet?

After submitting data in the HTML from, a servlet adds these data to my DB and forwards a result message …

forms jsp servlets retain