开发者

What is this approach of iPhone Programming called?

开发者 https://www.devze.com 2023-03-07 04:38 出处:网络
I have a sample code wherein: I am unable to understand how dat开发者_如何学JAVAa flows from database to reports because there is no place to set or fetch data explicitly. It is all done through cus

I have a sample code wherein:

  • I am unable to understand how dat开发者_如何学JAVAa flows from database to reports because there is no place to set or fetch data explicitly. It is all done through custom objects.
  • Even we are not able to fetch data through console using NSLog as it has ENUM keys
  • All objects are custom objects so if we put it in NSLogs we get structure like < CustomObject-hexcode>. Many of the classes again comprise of objects from other classes.
  • Even if I try to debug code by putting breakpoint, then after few steps it show Hexadecimal codes

I wont be able to put sample code as it is a whole project containing lot of files.

Can you please let me know what kind of approach has been used? It looks like some sort of encapsulation.

Thanks!


Write categories that implement the - (NSString* ) description method for each custom object that displays all variables the custom obejects hold, you can there translate each of the enum values to strings. Then you can use NSLog to output objects and get readable results.


you need to debug application. and for this "All objects are custom objects so if we put it in NSLogs we get structure like < CustomObject-hexcode>" you need to integrate a category class in your project. Search on google for override description of nsobject. You will get nslog in proper format.


It sounds like some kind of custom ORM with serialization / deserialization etc. Euuuwww.

0

精彩评论

暂无评论...
验证码 换一张
取 消