Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Collections - Arrays & Dictionaries

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Sep 22, 2008 11:19 pm    Post subject: Collections - Arrays & Dictionaries Reply with quote

SO - Best way to remove from NSMutableArray while iterating?

"In Cocoa, if I want to loop through an NSMutableArray and remove multiple
objects that fit a certain criteria, what's the best way to do this without restar-
ting the loop each time I remove an object?"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Sep 23, 2008 11:37 pm    Post subject: Reply with quote

SO - How to view contents of NSDictionary variable in Xcode debugger?

"Is there a way to view the key/value pairs of a NSDictionary variable
through the Xcode debugger? Here's the extent of information when it
is fully expanded in the variable window"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Sep 27, 2008 1:44 pm    Post subject: Reply with quote

MF - What Is NSCollectionView?

"Apps like iPhoto, where you can drag and drop images into some other
window's array grid; is this done using NSCollectionView?"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Oct 13, 2008 8:33 pm    Post subject: Reply with quote

MF - How to copy NSMutableDictionary

"
Remember that you can't put an NSArray into a dictionary. You only put an NSArray*
into a dictionary. When you use [dictionaryWithDictionary:] or [initWithDictionary:],
the new dictionary has copies of all of the values in the original array, including
COPIES OF THE POINTERS. Both pointers still refer to the same array object, so
operating on the array* in one of the dictionaries will will modify the 'array' in both
dictionaries."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Aug 08, 2009 8:59 pm    Post subject: Reply with quote

SO - What’s the Difference between objectForKey and valueForKey?

"Hi everyone, What is the difference between objectForKey and valueForKey?
I looked both up in the documentation and they seemed the same to me."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Aug 23, 2009 10:53 pm    Post subject: Reply with quote

mikeash.com - Key-Value Observing Done Right

"Cocoa's Key-Value Observing facilities are extremely powerful and useful.
Unfortunately they have a really terrible API that's inherently broken in a co-
uple of different ways. I want to discuss how it's broken, and a way to make
it better."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Thu Dec 10, 2009 7:03 pm    Post subject: Reply with quote

Shannon Appelcline - NSSet, Part One: The Basics

"In NSArray and NSDictionary you've already got two perfectly acceptable
data storage classes. So, why do you need another? The answer is effici-
ency."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Jun 18, 2010 11:51 pm    Post subject: Reply with quote

More of the same - Where’s the difference between setObject:forKey:
and setValue:forKey: in NSMutableDictionary?


"Both "value" and "object" are of type id, so can be any object. Key is once
a string, and in the other case an id. One of them seems to retain the object,
and the other don't. What else?"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Jul 03, 2011 4:57 pm    Post subject: Reply with quote

borkware.com - Binary Searching in a sorted NSArray

"How do you binary search a sorted NSArray? Use toll free bridging to
CFArray which actually has a binary search function..."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Aug 21, 2011 11:11 pm    Post subject: Reply with quote

mf - How to enumerate and clear all my app's preferences?

"NSUserDefaults supports dictionary values. You could store your per-book
preferences in a dictionary, then store that dictionary using NSUserDefaults
with a key unique to the book."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Oct 01, 2011 7:40 pm    Post subject: Reply with quote

Walking Smarts - WSCoreLaziness

"WSCoreLaziness is a shot at making ActiveSupport for Cocoa frameworks.
The idea is simple - create a collection of (as of this writing) Foundation
framework categories that aim to shorten the amount of your typing and
increase the amount of hitting Esc and Tab keys, provide familiar API and
sensible defaults."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Wed Feb 27, 2013 7:37 pm    Post subject: Reply with quote

Ash - UICollectionView Example

"We're going to take a look at the new UICollectionView class Apple
introduced in iOS 6. It's used to display a grid of cells, and what better
to display in those cells than some beautiful photos from 500px?"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group