Re: NSMutableDictionary or Custom Object when adding properties?

2013-05-22 Thread Christ Levesque
Howdy, It's very easy to do using runtime. I have a framework for doing dynamic creation at runtime. Also, It's easy to get O-C based class elements such as properties, ivars, protocols. methods using runtime. You can take a look at this. https://gist.github.com/Ch0c0late/5575679 It introspects

Re: Clang "File not found" - in cocoa app

2013-04-21 Thread Christ Levesque
I'm coding an app that generates document. For generating document of XML i used the NSXMLParser and for generating document of source code i used libclang. If you want to know more I can help you to find how to use libclang for accomplish the same task as me. Because you are curious I want to d

Re: Problems converting to ARC

2013-04-21 Thread Christ Levesque
>> I want to convert my code to ARC but this problems doesn't let me to do >> this. I read the errors but I couldn't do nothing. All the problems are in >> these else if statement and are colored Red. >> >> else if (isupper(character)){ >> 1) Pointer to non-const type 'NSString *' with no e

Re: Problems converting to ARC

2013-04-21 Thread Christ Levesque
>> I want to convert my code to ARC but this problems doesn't let me to do >> this. I read the errors but I couldn't do nothing. All the problems are in >> these else if statement and are colored Red. >> >> else if (isupper(character)){ >> 1) Pointer to non-const type 'NSString *' with no e

Clang "File not found" - in cocoa app

2013-04-19 Thread Christ Levesque
Hi there, I used clang in my cocoa app but it doesn't find Clang/Index.h. The error is "File not found". I linked to clang but again it doesn't find it. Anybody knows what's the problem. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Problems converting to ARC

2013-04-19 Thread Christ Levesque
Hi there, I want to convert my code to ARC but this problems doesn't let me to do this. I read the errors but I couldn't do nothing. All the problems are in these else if statement and are colored Red. else if (isupper(character)){ 1) Pointer to non-const type 'NSString *' with no expli

NSInvocation's getArgument & setReurnValue question

2013-04-19 Thread Christ Levesque
Hi there, I used - getArgument:atIndex: method but it gives me error. I don't know what's the problem. I used this as below: if ([component isEqualToString: @"class"]) { 1) id arg; 2) [invocation getArgument: &arg atIndex: i + 2]; 3) [self class:arg]; } The error is this: NSInvocati

Re: Watching a file for changes.

2013-03-21 Thread Christ Levesque
If you mean in a text edit is it so easy you can use observing mechanism on object that has changed. For instance you have a text edit app and you assume input to this app an NSString. Well you make a new class inherited from NSString and when this class's ivars changed you use addObserver:forK

Proxies and Forwarding

2013-02-18 Thread Christ Levesque
1- Allow message to be sent to an objector that is separated from the message's sender by time or space. 2- Forwarding simplifies the capture of messages as invocations so that they can be resent, delayed, repeated, stored, or altered How to implement them? __

Facade

2013-02-18 Thread Christ Levesque
1- Provide a simple interface to a complex subsystem. 2- Limit coupling. How to implement them? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-

Flyweight

2013-02-18 Thread Christ Levesque
1- Reduce storage requirements 2- Stand-Ins for other objects How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Associative Storage

2013-02-18 Thread Christ Levesque
Organizes data and keys so that data can be quickly and easily accessed used the corresponding keys at runtime based on dynamic objects. How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Archiving and Unarchiving dynamic objects at runtime

2013-02-18 Thread Christ Levesque
Used to copy or store a group of interrelated dynamic objects at runtime. How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-d

Accessors

2013-02-18 Thread Christ Levesque
Technique for funneling all access to an objects properties at runtime. As you know we can use accessors that @property declared but the question is there when you create an objects at runtime how to create accessors for them. How to implement it? ___

What is the meaning of id?

2013-02-18 Thread Christ Levesque
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Dynamic Creation

2013-02-18 Thread Christ Levesque
Ability to create instances of classes that did not exist at the time an app was compiled and dynamically load and link new class at runtime. How to implement it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

How to use NSManagedObjectContext, NSManagedObjectModel, NSEntityDescription, NSManagedObject

2013-02-15 Thread Christ Levesque
Hello I want to use these classes in my app but I don't want to use it in Core Data. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(

Dynamic Object, How to implement B-Tree in Objective-c, Archiving on each B-Tree node

2013-02-15 Thread Christ Levesque
Hello How to create dynamic object based on user request and then how to insert it in a B-Tree and then how to archive/unarchive this tree. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

How to create OODBSM's database engine in Objective-C & cocoa?

2013-02-12 Thread Christ Levesque
Please note that my database is Object Oriented Database management system. I work on it so much and I got something interesting. First of all I implemented B-Tree but now days the problem is how to add dynamic object with it's instance variable to a binary tree. I want to give you an example fo

How to create a dynamic object - The question is mark than it please read full text

2013-02-12 Thread Christ Levesque
The question is here that how to create a dynamic object. But keep it in mind and let's expand it. Each object has several instance variable and several method. How to add to a dynamic object instance variable and method? And then how to forward the message and use method? And how to generate r