ymatsukawa blog

更新は不定期

2015-04-29から1日間の記事一覧

@property(readonly) 's initialization(initialize)

Benedict's Soapbox » Defining an Objective-C @property as Publicly readonly and Privately readwrite readonly in outside interface readwrite in inside interface and implementation (and synthesize) XYZViewController.h #import <UIKit/UIKit.h> @interface XYZ</uikit/uikit.h>…

@property, @synthesize ; what is

@property can declare getter/setter property equiv to @property getter/setter|yes @property(readwrite) getter/setter (same as above) @property(readonly) getter|yes @synthesize can cut out getter/setter logic if set @property in interface h…

ARC and retain ; summary, what is

ARC All you have to do is claim ownership of any object you need and remember to relinquish ownership when you’re done with it. retain The retain method claims ownership of an existing object. It’s like telling the operating system, "Hey! …

NOT IN ; sql

check whether exists NULL when use NOT IN (related to: return value of IN predicate ; sql - Red > Green > Refactor > Red) create table member ( memberid serial, name text, age integer, home text, PRIMARY KEY(memberid) ); SELECT * FROM memb…

PostgreSQL's auto increment > serial

use serial official PostgreSQL: Documentation: 9.4: Numeric Types unofficial PostgreSQL - AUTO INCREMENTwww.tutorialspoint.com CREATE TABLE table_names ( id serial, name text, PRIMARY KEY(id) ); INSERT INTO table_names (name) VALUES ('taro…

logger out zombie objects

same as Xcode 6 How do I set up NSZombieEnabled in Xcode 4?stackoverflow.com

error: writable atomic property cannot pair ...

atomic ... property is NOT writable ... @property (atomic) nonatomic ... property is writable ... @property (nonatomic) error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getterstackoverflow.…