Hi
here is the short OBJC code to get all contacts
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
i am doing
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
but it doesnt work. it says [<b4i_main 0x1700f6380> valueForUndefinedKey:]: this class is not key value coding-compliant for the key GC.
how can I use native object to retunr this to a list
Narek
			
			here is the short OBJC code to get all contacts
			
				B4X:
			
		
		
		ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, nil);
NSArray *allContacts = (__bridge NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBookRef);i am doing
			
				B4X:
			
		
		
		#If OBJC
- (NSArray *) GC
{
ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, nil);
NSArray *allContacts = (__bridge NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBookRef);
return allContacts;
}
#End if
Dim jo As NativeObject = Me
Dim l As List=jo.GetField("GC")but it doesnt work. it says [<b4i_main 0x1700f6380> valueForUndefinedKey:]: this class is not key value coding-compliant for the key GC.
how can I use native object to retunr this to a list
Narek
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
	
								
							
							 
				 
 
		 
 
		 
 
		 
 
		 
 
		