Re: iPhone cannot compile 2.2 SDK application for 3.0 SDK

2009-07-15 Thread Devon Ferns
It seems to be a bug with GCC 4.0.  Set the compiler to GCC 4.2 for  
SDK 3.0 or higher.


Devon

On 2009-07-15, at 7:07 AM, Graham Cox wrote:



On 15/07/2009, at 7:18 PM, Shraddha Karwan wrote:


error: syntax error before 'AT_NAME' token
error: syntax error before '}' token
fatal error: method definition not in @implementation context



This looks like you're missing the @end from the bottom of a class  
definition somewhere. Maybe you accidentally edited UIKit.h?


--Graham


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: What's wrong with my NSMutableArray?

2009-06-12 Thread Devon Ferns
You need to retain your array since arrayWithCapacity returns an 
autoreleased object.


And in dealloc, release the array, and set to nil if you want to but not 
necessary.


Devon

Allan Greenier wrote:

This is so simple I know the answer will embarrass me.
This is an iPhone app.
I've got an NSMutable array declared in my EAGLview.h file

NSMutableArray *boxes;

I init and fill it in the EAGLview's initWithCoder method

boxes = [NSMutableArray arrayWithCapacity:NUM_BOXES];
   
for(i = 0; i < NUM_BOXES; i++)
{   
Box *abox = [[Box alloc] init];

[boxes addObject: abox];
}   


In EAGLview dealloc I

boxes = nil;

Later on in program flow, in EAGLview, if I try to access boxes in 
anyway, I crash into the debugger


[boxes objectAtIndex: 0];

or even

NSLog(@"mode5 boxes  %@",  boxes);

will crash

What am I missing? What's wrong with my NSMutableArray?
My only guess is it's in my for loop, I need to release abox?


Thanks,
Allan



___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Aquatic Prime + PayPal With Multiple Apps?

2009-01-13 Thread Devon Ferns
With Paypal IPN you can put in custom variables or different URLs for 
different products like /ipn.php?product=1, /ipn.php?product=2 etc.
In your php script you could just load the correct key pair depending on 
the URL parameters or custom variables passed.


Devon


Chunk 1978 wrote:

i've been researching aquatic prime and it doesn't seem easy to have
multiple apps if licenses are purchased thru PayPal.

Aquatic Prime + PayPal requires Auto Return to be turned on, and a
Return URL to be supplied.  the return URL leads to the .PHP file that
produces the license and and automatically sends it thru email.   the
supplied .PHP scripts are set up for one set of keys (Public Key and
Private Key)... different apps should have a different set of keys so
that purchasing one license for one app will not work on all apps the
developer offers...

the only thing i can think of is to have PayPal's Return URL be
directed to some sort of If/Else .PHP script that would load the
appropriate .PHP scripts for the appropriate purchased license, but
what would the variables be with paypal?

does anyone have experience with multiple apps and Aquatic Prime?
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Security With Show Package Contents?

2009-01-12 Thread Devon Ferns
Have you checked if the new Pages file format is now binary instead of a 
package?  That would be my guess.  I don't see how you can stop anyone 
from listing a directory structure.


Devon

Chunk 1978 wrote:

so i was a little put off after purchasing iWork '09, because i could
no longer access "Show Package Contents" of my pages files.  i
generally used this to swap out images of the same size, or to color
balance, etc.

anyway, i started thinking about security of applications based on
showing package contents.  as far as i know the only way for someone
to crack an application is to have access to the package contents
which lists the Unix Executable File in the Mac OS folder.  i guess
there's also the possibility to swap out frameworks (particularly
Aquatic Prime framework if the framework is installed instead of the
Aquatic Prime library)... since apps are really just folders with a
.app extension, wouldn't it be possible to disable "Show Package
Contents", as with the new .pages files, so that it would make the app
more secure (if not impossible to crack)?  couldn't Apple implement
some sort of password protection or optional block on viewing package
contents with XCode so that apps are impossible to crack?

this post is totally just me thinking out loud.  i personally believe
that if someone is going to download a cracked version of an app then
either they wouldn't have bought a license anyway, or they don't have
the money... i'm not trying to make an app of mine more secure.  but
i'd like to hear your thoughts about this.
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Create UILabel to fit into text size

2008-12-30 Thread Devon Ferns
Here's how I do it for a UIButton which is centered in the view/window  
and has some padding added around the text.
You'll most likely have to set a maximum size for your label width as  
well and change the font size to suit your needs.


#import 

NSString* buttonText;

CGSize fontSize = [buttonText sizeWithFont:[UIFont systemFontOfSize: 
12.0]];

CGRect currentFrame = button.frame;
CGRect windowFrame = self.view.frame;
CGRect buttonFrame = CGRectMake(windowFrame.size.width/2.0 -  
(fontSize.width + 15.0)/2.0, currentFrame.origin.y, fontSize.width +  
15.0, fontSize.height + 15.0);

[button setFrame:buttonFrame];

Devon

On 29-Dec-08, at 11:20 PM, Tharindu Madushanka wrote:


Hi
I am new to iPhone application development and please help me on this.
I need to add the contents in a text field to a UILabel. But I can't  
guess
how long the string in the text field be. There fore, can I make a  
UILabel
from the text ( I mean to fit the text to UILabel size). I have  
searched but

could not find a solution. Please help me on this with some code.
I think if I get a CGRect object with some string it could set as  
UILabel's

frame. can you suggest some code segment to do this.
Thank you
Tharindu
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com




smime.p7s
Description: S/MIME cryptographic signature
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: More - Safari Download Security Alerts

2008-12-15 Thread Devon Ferns
This is OT for the Cocoa list now, but you can set an EULA to be 
displayed when mounting a dmg.  I don't know how since I've never cared 
to check but many apps do it so it's possible.


You could just have the user drag the whole folder to the installation 
directory with an EULA being displayed when mounting the dmg.


Many apps come on a dmg with a background image showing the user that 
they should drag the .app or folder to /Applications to install.


Devon


Dave wrote:


On 15 Dec 2008, at 16:31, Bill Bumgarner wrote:


On Dec 15, 2008, at 7:29 AM, Dave wrote:
I've being experimenting since I wrote the above. My installation 
consists of a folder that contains an application. I want the folder 
to be created in "/Applications", however, it doesn't seem to let me 
do this. I end up with just the .app file in "/Applications", not a 
folder with the app inside it as I expected. So, how do I get it to 
create a folder that contains my app file?


Why doesn't drag and drop work?


AFAIK it does work, but my boss wants to be able to display a "T&C" page 
etc. and he wants an installer. Also it isn't a straight forward .app 
file, it's an App file that is in a folder that also also contains other 
folders/files.


Does your app *have* to be in /Applications?  If so, that means all 
the users with non-admin accounts won't be able to install the app 
(and if you require read/write to anything in that folder, they can't 
use it either-- nor can multiple users on one machine).


No, it doesn't have to be in "/Applications", but this is the 
recommended place to put it if you want it to be accessible to all users 
on the machine, isn't it? If not where does it get stored? That's where 
every other app is stored and it's where it has been stored up until now 
(using the AppleScript Installer) and I haven't had any problems 
reported of people not being able to access it, or are you saying it 
won't be accessible using a PackageMaker installer?


Thanks a lot,
All the Best
Dave


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to dfe...@devonferns.com

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: NSDictionary mutability test

2008-12-08 Thread Devon Ferns
Instead of using exceptions, wouldn't 
-(BOOL)respondsToSelector:(SEL)aSelector

work if you test for an NSMutableDictionary mutable method?
Or does that not work with class clusters either(can't try it since I'm 
not at home)


Devon

[EMAIL PROTECTED] wrote:

Thanks for the reply.

I am aware of why the assertion is never applied but the thread I 
referenced was several years old and I was hoping that there had been 
some progress on this.

Maybe not.
I was using this assertion (written some time ago in ignorance) and 
wasted an afternoon tracking down the fact that it didn't work.

Maybe the only solution is to set up an exception handler.

On 8 Dec 2008, at 17:31, Jonathan Hendry wrote:


It's because NSMutableDictionary is part of a class cluster:

From the NSObject protocol docs:

Be careful when using this method on objects represented by a class 
cluster. Because of the nature of class clusters, the object you get 
back may not always be the type you expected. If you call a method 
that returns a class cluster, the exact type returned by the method is 
the best indicator of what you can do with that object. For example, 
if a method returns a pointer to an NSArray object, you should not use 
this method to see if the array is mutable, as shown in the following 
code:


// DO NOT DO THIS!
if ([myArray isKindOfClass:[NSMutableArray class]])
{
// Modify the object
}

On Dec 8, 2008, at 12:15 PM, [EMAIL PROTECTED] wrote:

There are a number of posts detailing with the ethics of the issue of 
determining an object's mutability.

eg: http://www.cocoabuilder.com/archive/message/cocoa/2004/7/7/73
Does anyone have a current informed pragmatic opinion on how to deal 
with the following example?


I am not trying to determine program flow by determining mutability, 
merely trying to limit the number of self inflicted injuries.
The following never seems to assert, regardless of whether dict is 
mutable or not.


NSAssert([dict isKindOfClass:[NSMutableDictionary class]], @"dict is 
not mutable");


I know that it is my responsibility to remain aware of an object's 
allocated class but sometimes I find myself wanting.


Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




___

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:
http://lists.apple.com/mailman/options/cocoa-dev/jonhendry%40mac.com

This email sent to [EMAIL PROTECTED]


Jonathan Hendry

Howard Hughes Medical Institute
Maunsell Lab
Harvard Medical School




Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Autorelease Question

2008-11-21 Thread Devon Ferns

The docs say autoreleased as he already said which may not always be true.

Devon

Filip van der Meeren wrote:



I quote: "For objects that never get released, this method should return 
UINT_MAX". So where do you see your bug ?



Filip van der Meeren
http://www.sourceforge.net/projects/xlinterpreter

On 21 Nov 2008, at 16:44, mmalcolm crawford wrote:





I do, and I already filed a bug.

Cocoa Fundamentals Guide states:

Class Factory Methods

"Class factory methods are implemented by a class as a convenience for 
clients. They combine allocation and initialization in one step and 
return the created object autoreleased. These methods are of the form 
+ (type)className... (where className excludes any prefix)."
 



It should probably not explicitly state "autoreleased" — it should 
simply state that — in accordance with standard memory management 
rules, in a reference counted environment — the receiver does not own 
the returned object.



mmalc



___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: ActiveRecord on Cocoa

2008-11-11 Thread Devon Ferns

Maybe he wants to use it where there is no Core Data i.e. iPhone.

This was announced a few months back for storing in sqlite
http://code.google.com/p/sqlitepersistentobjects/

I haven't used it myself since I'm not sure if it's been enhanced to 
automatically alter the table if you have the table already and add new 
properties to your objects



Devon

I. Savant wrote:

I'm searching for a things like ActiveRecord for Ruby in Objective-C
(but I don't want to use Core-Data).
Anyone can point me to the right solution? I've taken a look at
http://www.cocoadev.com/index.pl?DataCrux but seems to be adbandoned.


  Why would you be alright with using something like DataCrux but not 
Core Data? Core Data is supported by Apple, built into the OS, actively 
maintained, extensible (in terms of store type) and very well integrated 
with the API.


  This is just my own curiosity ... is there a specific reason Core Data 
will not work for you?


--
I.S.


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: NSTimer issue

2008-11-05 Thread Devon Ferns

Does self implement the selector?
It sort of sounds like you're passing it a selector implemented by a 
different class and not by whatever class is self in this instance.

The selector should be implemented by the target.

Devon

Daniel Luis dos Santos wrote:



In the target argument I pass self, and as selector a method of the 
class in question. 

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Parsing xml files in Cocoa applications

2008-10-31 Thread Devon Ferns
NSXMLParser is also good if you don't know or don't care what the order 
of the elements are in your XML file.


Devon

Nicko van Someren wrote:

It is worth noting that while the event-driven NSXMLParser class is 
available on the iPhone, NXSMLDocument and its friends for the XML DOM 
are NOT available on the iPhone.  If you have existing code that uses 
NSXMLDocument which you want to port to the iPhone you shall need to 
rework the code or write classes to emulate the necessary functionality.


Unless you know that you need to keep all the information in your XML 
document for use later you can usually save quite a lot of space by 
using the event model and being careful which parts of the data you 
bother keeping.  I suspect that in the memory-constrained world of the 
iPhone this was the rationale behind forcing people to use the 
event-driven model.  You do however need to be cautious when using the 
event driven parser in a memory-constrained environment to make sure 
that you don't leave lots of objects in the auto-release pool after your 
event calls.  If you have a large document which you parse and filter 
down to some much smaller data set but on the way leave a lot of trash 
in the auto-release pool you can find the iPhone app running out of 
memory before you've finished parsing the document.  If you are unsure 
you can always push a local auto-release pool at the start of each of 
the event callbacks which do any hard work and pop them again before you 
return from the callback.


Cheers,
Nicko

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Retain

2008-10-24 Thread Devon Ferns
I've done stuff like this by accident but doesn't it actually crash 
later on when the auto release pool runs to release memory and not 
actually at the release?


This is a good use of NSZombies if you have strange crashes.

Devon

Mike Abdullah wrote:



BUT NOT:

NSString w = [NSString stringWithFormat:@"something %i", x];
// Do stuff
[w release];// Will crash here



___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: corrupt coredata DB

2008-10-08 Thread Devon Ferns

DELETE FROM zplayedtrack WHERE z_opt = null

I don't know much about CoreData but maybe you can't bind null 
parameters in SQLite?


Devon

Marc Monguio wrote:
I have a coredata application that uses sqlite3 for persistence. One of 
my users reported that his application was not responsive and showed the 
spinning beach ball of death. If I debug the application using his 
database it stops after executing this:


// objectId is the object we want to delete
NSManagedObject *managedObj = [[self managedObjectContext] 
objectWithID:objectId];

[[self managedObjectContext] deleteObject:managedObj];
NSError *error;
[[self managedObjectContext] save:&error]

It never goes beyond the line above. The System halts at the save 
command without fulfilling the error object. If I run the application 
with the "-com.apple.CoreData.SQLDebug 5" argument and look at the 
console I see the infinite loop that is freezing the application:


CoreData: sql: BEGIN EXCLUSIVE
CoreData: sql: DELETE FROM ZPLAYEDTRACK WHERE Z_PK = ? AND Z_OPT = ?
CoreData: details: SQLite bind[0] = (int64)660
CoreData: details: SQLite bind[1] = nil
CoreData: sql: SELECT Z_PK,Z_OPT FROM ZPLAYEDTRACK WHERE Z_PK IN (660) 
ORDER BY Z_PK

CoreData: annotation: sql execution time: 0.0069s
CoreData: sql: ROLLBACK

CoreData: sql: BEGIN EXCLUSIVE
CoreData: sql: DELETE FROM ZPLAYEDTRACK WHERE Z_PK = ? AND Z_OPT = ?
CoreData: details: SQLite bind[0] = (int64)660
CoreData: details: SQLite bind[1] = nil
CoreData: sql: SELECT Z_PK,Z_OPT FROM ZPLAYEDTRACK WHERE Z_PK IN (660) 
ORDER BY Z_PK

CoreData: annotation: sql execution time: 0.0056s
CoreData: sql: ROLLBACK

(...)

Looks like it's trying to delete the object repeatedly in the database 
but it can't and then rolls back and tries again. By looking inside the 
sqlite database directly through sqlite3 tool I see that the tuple that 
coredata is trying to delete has Z_OPT equal to null:


sqlite> .schema ZPLAYEDTRACK
CREATE TABLE ZPLAYEDTRACK ( ZSKIP INTEGER, ZSHUFFLEMODE INTEGER, Z_OPT 
INTEGER, Z_ENT INTEGER, Z_PK INTEGER PRIMARY KEY, ZEND FLOAT, ZBEGIN 
FLOAT, ZTRACKNAME VARCHAR, ZLOCATION VARCHAR, ZALBUMNAME VARCHAR, 
ZARTISTNAME VARCHAR, ZSOURCE VARCHAR, ZPLAYLISTNAME VARCHAR );


sqlite> select z_pk, z_ent, z_opt from zplayedtrack;
660|1|
661|1|
662|1|1
663|1|1

How can I delete the two tuples (660 and 661) that have Z_OPT equal to 
NULL with coredata ?

Any idea why Coredata ended with those tuples with null Z_OPT ?

regards,
Marc


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Thank you for listening Apple!

2008-10-01 Thread Devon Ferns

Wow, hell froze over


Roland King wrote:
I would suggest we have to wait for the actual agreement and for the 
list maintainer to get some kind of guidance from apple. It looks like 
very positive news but .. currently we're still bound I think.


On Oct 1, 2008, at 11:22 PM, Alexander Griekspoor wrote:


Awesome! Any official policy/point-of-view with regards to this list?
http://developer.apple.com/iphone/program/

--


** Alexander Griekspoor  PhD **

 mekentosj.com

Papers - Your Personal Library of Science
2007 Winner of the Apple Design Awards
Best Mac OS X Scientific Solution
http://www.mekentosj.com/papers

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org

This email sent to [EMAIL PROTECTED]


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Multi DB Library

2008-09-17 Thread Devon Ferns
He was talking about using a local sqlite cache so at least in my view I 
don't see the point in using ODBC for that.  SQLite really doesn't have 
too much different from generic SQL that would make it hard to learn 
especially since there are some nice wrapper classes around it already.


Devon

Ted Thibodeau Jr. wrote:

Devon wrote:

OS X has libsqlite3 built in. You just have to include the header
file and link to the library.  It's C based and you can write an
Objective-C wrapper functions around it.  There are already some
good ones like FMDatabase or Quicklite.


Well, yes ... but it's not an ODBC driver, is it?

If you choose to do this, then you're building a SQLite-specific
application, and that wasn't what the original writer was after.

Be seeing you,

Ted



___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Multi DB Library

2008-09-17 Thread Devon Ferns
OS X has libsqlite3 built in. You just have to include the header file 
and link to the library.  It's C based and you can write an Objective-C 
wrapper functions around it.  There are already some good ones like 
FMDatabase or Quicklite.


Devon


dreamcat7 wrote:

Hi,
As a developer I aswell am finding it hard to evaluate these options 
myself and without prior experience. For example I would be drawn to the 
prospect of learning the same api for both the local and remote 
database. (typically id like to cache the data downloaded from the data 
onto a local sqlite DB). I did find only one ODBC driver for sqlite


http://www.ch-werner.de/sqliteodbc/

Which assuming (enough of it) should work would your comments still 
hold? It is was the only Sqlite ODBC driver i could find so i am 
inevitably wondering if thats a bad sign to use ODBC actually as an 
SQLite interface. And actually how big an advantage would it be to learn 
things the first time as the ODBC way only? (rather than starting with 
the SQLite C api which is what others on this list have recommended).


And, apologies if this is heading off - topic  but

My other option up to now is to use a special cocoa library for the 
SQLite, and something rather different (MYSQL+PHP) on the server side. 
This is probably a common question: It actually simpler then to go MYSQL 
-> ODBC -> PHP rather than MYSQL -> PHP for such the benefit of doing 
"everything" in ODBC.


If i understand from your comments then using this API will conceal 
differences between MYSQL and SQLite and help me to concentrate on 
learning a simple generic SQL syntax. But bearing in mind the 
server-side code cant be written in Cocoa (objective-c) and in my own 
circumstance it will be inevitably written in PHP. Do we really end up 
with a more coherent environment (fewer languages) to work on our data 
model which likely must be transactional with the client ?




On 17 Sep 2008, at 16:26, Ted Thibodeau Jr. wrote:


Can anyone suggest a multi Database library for use in developing a
Cocoa based app? At least support for Oracle, MySQL and PostgreSQL
would be required.

I notice that Python has good database support. Would developing a
PyObjC app be a better way to go?


ODBC...  If you're working with any C-based tools, that is.  Perl,
Python, Ruby, PHP, etc. -- they all have ODBC libraries.

JDBC, if you're working with Java-based.

Use ODBC/JDBC and SQL standards-compliant calls -- avoid DBMS-specific
dialect -- and you should find that things go pretty well.  Changing
DBMS is in all these cases just a matter of changing the ODBC DSN or
JDBC URL -- and of course, having the relevant driver in place.

For full Cocoa ODBC support, you'll need to either build from source
or download a pre-compiled set of the iODBC Frameworks, as Apple has
chosen to only ship the dylibs. < http://sf.net/projects/iodbc>,
, or
. 



I will observe that free drivers are often worth what you pay for
them, with incomplete and/or imperfect implementations of some API
calls, but there are plenty of options out there.

(I work for one driver vendor, OpenLink Software, which also happens
to be the maintainer/supporter of the open source iODBC Project, which
is the basis of the ODBC libraries on Mac OS X.  We don't make any
money until/unless someone chooses to buy one of our drivers -- the
iODBC SDK is free in all ways, and all our drivers and other commercial
products have free download and 14-day (renewable) testing licenses,
and free up-and-running support; upgrading to permanent license only
requires a new license file. )

Be seeing you,

Ted




___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dreamcat7%40googlemail.com 



This email sent to [EMAIL PROTECTED]


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: confused about allocating and releasing objects

2008-08-27 Thread Devon Ferns
If you had access to the NSDictionary source code you'd find that the 
NSDictionary's +dictionaryWithContentsOfFile:(NSString*)fileName would 
probably look something like this:


+(NSDictionary*) dictionaryWithContentsOfFile:(NSString*)fileName
{
return [[[NSDictionary alloc] initWithContentsOfFile] autorelease];

}

As you can see it's not really doing anything all that special. It's 
really just saving you some typing and having to release it yourself if 
it's for a temporary variable.


Devon

Memo Akten wrote:

HI All, i'm a bit confused about the 2 scenarios:

NSDictionary *myData1 = [NSDictionary 
dictionaryWithContentsOfFile:@"mydata.plist"];// this one I 
don't need to release when I'm done?
NSDictionary *myData2 = [[NSDictionary alloc] 
initWithContentsOfFile:@"mydata.plist"];// this one I do need to 
relase when I'm done?


There seems to be a lot of situations in Cocoa where this happens so I 
guess this is a generic question for all cases when an object is created 
via means of a static method vs using alloc:initWith... (e.g. NSArray, 
NSString, NSNumber etc. are just a few I've seen).


Whats the difference between the two methods? (I know the second one 
creates a blank dictionary first, and then loads the file - but I mean 
which one is better for what purpose? - why would I choose one over the 
other). And am I correct in assuming if I use the first method i do not 
need to release the variable when I'm done? but do need to release the 
variable in the second instance?


Cheers,

Memo.
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: [ANNOUNCE] SQLite Persisted Objects for Cocoa

2008-08-26 Thread Devon Ferns

Col.

One question.  What happens if you change your object's properties? Is 
the database automatically updated with the new fields?


What about pointers to other custom classes?  Would that work if those 
classes inherit from SQLitePersistentObject?


I'll definitely have to check this out later on.

Devon

Jeff LaMarche wrote:

Greetings all.

I recently created a project at Google Code that I wanted to bring to 
your attention.


http://code.google.com/p/sqlitepersistentobjects/

The goal of this project is to create Objective-C data model objects 
that automagically know how to persist themselves to a SQLite database 
based on their Objective-C 2.0 properties without any need to write SQL 
or use the SQLite3 API directly.  The version of the source code that is 
currently available on Google Code is a solid, functional beta. The only 
major feature not currently implemented is the ability to rollback an 
object to its saved state, and I'm currently working on that. If you use 
it, you should expect to encounter some bugs (it's an early beta, after 
all), but it should work for most purposes.


If you've ever used Ruby's ActiveRecord implementation, this is fairly 
similar, except that instead of being driven by the database tables, 
it's driven by the Object's properties.  This allows you to build a 
persistable data model without having to create a mapping as Core Data 
requires. You just create your classes and all the mapping to and from 
the database is done  behind the scenes thanks to the superclass.


This supports storing most common object types and scalars in data 
fields. It also supports collection classes (NSSet, NSArray, 
NSDictionary) using cross-reference tables, and stores references to 
other persisted objects as quasi-foreign-key relationships (I couldn't 
use the FK constraints in the database because they are table-specific, 
don't lend themselves to polymorphism, and aren't enforced by SQLite3 
anyway). It also supports adding indexes to the underlying tables by 
overriding a class method.


In order to create persistable objects, you simply add the files from 
this project to your Xcode project, link to sqlite3.dylib, then create 
subclasses of SQLitePersistentObject, like so:


#import 
#import "SQLitePersistentObject.h"

@interface PersistablePerson : SQLitePersistentObject {
 NSString *lastName;
 NSString *firstName;
}
@property (nonatomic, retain) NSString * lastName;
@property (nonatomic, retain) NSString * firstName;
@end

Once you've done that, you can just create your objects as usual:

PersistablePerson *person = [[PersistablePerson alloc] init];
person.firstName = @"Joe";
person.lastName = @"Smith";

Then you can save those objects to the database (the data base and table 
will be created automatically) like so:


[person save];

Loading it back in is almost as easy. All persistable object classes 
gets dynamic class methods added to them to allow you to search for 
instances. So, for example, you could retrieve all the PersistablePerson 
objects that had a last name of "Smith" like so:


NSArray *people = [PersistablePerson findByLastName:@"Smith"]

Or, we could specify the exact criteria like this:

PeristablePerson *joeSmith = [PersistablePerson 
findFirstByCriteria:@"WHERE last_name = 'Smith' AND first_name = 'Joe'];


This is licensed under a very liberal license - you can use it in any 
software, free or commercial, without limitation. You do NOT have to 
give credit and you do NOT have to publish your changes to the source 
code (although I'll certainly welcome any bug fixes or enhancements you 
wish to give back). The only restriction I've placed on this project is 
that if you choose to distribute the source code you must leave  the 
copyright and license information in the file, though you are welcome to 
add additional comments if you wish.


I welcome all comments and/or feedback.

Thanks,
Jeff
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-16 Thread Devon Ferns
I've used AsyncSocket before but not too extensively.  It seems to  
work just fine and I don't really have any complaints about it.


Devon

On 16-Aug-08, at 2:27 PM, Brad Gibbs wrote:


Hi,

I'm looking for a Cocoa class to establish a TCP socket with another  
machine on a local network (non-OS X).  I've found Omni Networking,  
AsyncSocket and NetSocket.  I've read conflicting reports of the  
suitability of NSSocketPort for non-DO-related work.  I would like  
to be able to use an SSL certificate, but, beyond that, my needs  
aren't exotic.  Ease-of-use and reliability would be a big plus.   
I've also considered a Ruby class that would handle the TCP  
messaging and pass responses back to the Cocoa-based app.  Any  
suggestions?


Thanks,

Brad
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: creating files to write data to?

2008-08-15 Thread Devon Ferns
NSFileHandle writeData takes an NSData pointer not a string and that's 
actually not how you do a string, you're missing the @ in front of it.




Devon

FTB Accounts wrote:



/* WRITE DATA TO FILE: THIS IS A TEST */
[fh writeData:"THIS IS A TEST"];
[fh closeFile];


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: @try @catch

2008-08-14 Thread Devon Ferns


On 14-Aug-08, at 7:21 AM, Graham Cox wrote:



On 14 Aug 2008, at 8:58 pm, Georg Seifert wrote:

is it recommended to use @try .. @catch blocks as flow control like  
it is used in Python. They say explicitly to use it rather than do  
a lot of test before just try if it works to look after it only if  
it fails.



Hmmm, I'll be looking forward to the replies to this question!

My view is absolutely NOT to use try/catch for flow control. They  
were invented to handle exceptional conditions, and that's what they  
should be used for. They are not a substitute for proper conditional  
clauses and properly structured code. I believe the Python advice  
(which I take at face value, not being familiar with Python) is  
misguided at best, though may suit that language better. Also, my  
understanding is that while a try block is very cheap, the catch  
block is not. Since they are only expected to be run once in a blue  
moon, that's reasonable, but if they are used routinely, performance  
is likely to suffer.


cheers, Graham



Many(probably all now) desktop CPUs are optimized for branch  
prediction which would make if blocks more efficient.  You can't  
always say the same about embedded processors though.
My guess is you probably wouldn't notice much difference on a desktop  
between the two without using some profiling to see the actual speed  
difference.  It'd likely be in the range of hundreds of milliseconds.


I think it's still a horrible way of flow control.  I think for some  
reason Python must be more optimized for that method of flow control  
but since Objective-C is based on C, it's more likely that the basic  
if/else if will be more efficient.  Message dispatch is not really  
that much overhead.


I believe @try, @catch is faster than it used to be though.

Devon.

smime.p7s
Description: S/MIME cryptographic signature
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Accessing memory of another application?

2008-08-13 Thread Devon Ferns



Jason Coco wrote:




The manpage also fails to mention the undocumented PT_DENY_ATTACH flag
that applications can pass to force ptrace to fail to attach.  Pro
Tools, for example, does this because the "programmers" who wrote it
spent twice as much time on the copy protection as on the actual
application.


My manpage for ptrace shows the PT_DENY_ATTACH flag. It's the second 
flag documented under requests...


Anyway, for what he wants to do (obviously not a commercial 
application), I think the mach traps are the easiest
way to achieve his goals. Spawning the application into memory and 
dealing with an execution interpreter, as was
suggested before, is IMO way overcomplicated to cheat at a game :) much 
easier to just beat the game...




You can also get around that fairly easily by using gdb and breaking on 
ptrace.  Search on your favourite search engine to find out how.


Devon
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Newbie Error on Loading XML

2008-08-11 Thread Devon Ferns

You're missing some parameters for initWithContentsOfURL


The full method signature is
- (id)initWithContentsOfURL:(NSURL *)url options:(NSUInteger)mask 
error:(NSError **)error


Devon

Matt Keyes wrote:

Hello,

I am trying to load an XML file from the project, and here is what I do:

NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"MyXmlFile" 
ofType:@"Xml"]];
NSXMLDocument *xmlDoc = nil;

@try {

xmlDoc = [[NSXMLDocument alloc] initWithContentsOfURL:url];
}
@catch (NSException * e) {
txtResult.text = [NSString stringWithFormat:@"Error: %@", [e reason]];
}
@finally {

}

if(xmlDoc != nil)

{
 //... do stuff
}

The error I receive is:

"-[NSXMLDocument initWithContentsOfURL]: unrecognized selector sent to instance 
0x471100"

I was able to load a NSData object from the XML file and I can capture the file 
path in a string from the NSBundle resource path and it is correct.  I get this 
same error if I use the initWithData function for the NSXMLDocument object.

Any ideas?

Thanks,
Matt

_
Your PC, mobile phone, and online services work together like never before.
http://clk.atdmt.com/MRT/go/108587394/direct/01/___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Checking for hackintosh

2008-07-30 Thread Devon Ferns
Someone hacks the OS X kernel to bypass Apple's checks for a legitimate 
Macintosh and usually posts it to some p2p site where people 
steal(copyright infringe) it and run it on their home build PCs.


Devon

Tim McGaughy wrote:


On Jul 29, 2008, at 9:22 PM, John Joyce wrote:


Does anybody have a means or a tool for checking for hackintoshes?
I really don't approve of such things and would like to leave clever 
messages on my own software if it is run on a hackintosh.


What's a hackintosh?

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: global NSMutableDictionary

2008-07-29 Thread Devon Ferns
I think you probably want to use the singleton design pattern rather 
than that global variable.


Devon.

Nathaniel Gottlieb-Graham wrote:
I am trying to implement a global variable that's an 
NSMutableDictionary.  Up until now I've achieved this by making 
globalVariables.h and .m files to hold globals that are imported by all 
my classes.  globalVariables defines externs, and I already have two 
extern NSStrings set up and working.  But as soon as I try to create an 
extern variable here that's *not* and NSString, the compiler errors with 
"Initializer element is not constant".  What does this mean?


Why do externs seem to have to be NSStrings?  Also, is this even the 
right way to go about having a read/write global NSMutableDictionary?  
If not, how would I do this?


Thanks!
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: notification when app is moved

2008-07-17 Thread Devon Ferns
Why not just call it every time it starts up?  I can't imagine the 
overhead of the API call is very high.


Devon.

Mitchell Livingston wrote:

How can I call it again if I don't know it moved? Waiting until it fails is a 
bit too late in the process. Sure, chances are the app won't move, but why 
should it ever fail? Storing it in the library folder is not a real good option.
 
On Thursday, July 17, 2008, at 12:09AM, "Omar Qazi" <[EMAIL PROTECTED]> wrote:

On Jul 16, 2008, at 8:28 PM, Mitchell Livingston wrote:

But if the app is moved, the string that was previously returned  
from the call is no longer valid.
So... call it again. You can do this whenever the user starts your  
application, or when the call returns an error saying that it can't  
find the file.


You might be worrying about this too much. How often will a user move  
your application? If these files don't change you might even consider  
copying them to the user's library folder the first time your app is  
run.


Omar Qazi
Hello, Galaxy!
1.310.294.1593




___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: SOAP server framework?

2008-07-13 Thread Devon Ferns

Check out nusoap which is a php soap framework/library.
It's really easy to set up your own soap functions on the server and  
it generates the WSDL file for you dynamicall


Devon

On 13-Jul-08, at 6:34 PM, Stefan wrote:


Am 13.07.2008 um 23:08 schrieb Jens Alfke:



On 13 Jul '08, at 12:15 PM, Stefan wrote:

could anybody provide a pointer to a SOAP server framework - one  
with low impedance gap regarding ObjC/Cocoa?


It's possible that WebObjects has SOAP support, but I don't know  
for sure.


While there is much Java stuff available, I wonder why Apple never  
provided a SOAP server

implementation or a real Cocoa SOAP implementation.


SOAP is by now primarily an enterprise technology;


Yes, but I don't see, why this is an argument against implementing  
it in OS X.


Anyway, I found the csoap lib [http://csoap.sourceforge.net/], which  
compiles and installes

on OS X and includes a simple HTTP server, which ships SOAP messages.

Except I haven't played with it, it might be a way to go.

Thx and kind regards,

Stefan
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: string to float

2008-07-04 Thread Devon Ferns
What about replacing the , with a . and using NSString's floatValue 
function?


Devon

Robert Cerny wrote:

Hi folks,
I made a parser, which returns values like 10,45. It means, it has comma 
as a decimal point delimiter, which is correct in my language. I was 
trying to find a way to convert to NSNumber. Is it correct the the right 
way is to use NSScanner?


Robert
___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]

___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Creating AppControllers in InterfaceBuilder 3.1

2008-06-30 Thread Devon Ferns
You shouldn't even have to drag it into IB.  IB should pick up any new 
classes you create in XCode.


Devon

Tommy Nordgren wrote:


On 30 jun 2008, at 16.14, [EMAIL PROTECTED] wrote:


Hi

I'm writing my first project in Leopard and can't figure out how to 
accomplish the old
"Subclass NSObject/Generate Files/Instantiate" series of steps in 
Interface Builder 3.1.


I'm sure Interface Builder has a new way to do that but I can't find it.

Any help appreciated




You create the files from an XCode file template,
and drag the header file into IB
-
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]




___

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:
http://lists.apple.com/mailman/options/cocoa-dev/dferns%40devonferns.com

This email sent to [EMAIL PROTECTED]


___

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: [Moderator] List Guidelines - Must Read

2008-06-27 Thread Devon Ferns
I agree.  It's not like what's in the SDK is super secret.  Anyone can 
download it. 


Devon

Tom Harrington wrote:


Oh, they do allow it, despite what the moderators here say.  You just
have to use the appropriate Apple forum.  Apple's support forums have
a "developer" section with no shortage of iPhone discussion.  Apple
hosts it and nobody seems to mind.

See  for the forum.

It seems kind of silly that iPhone discussion is forbidden here when
Apple's apparently not concerned with hosting the discussions
elsewhere, but hey, what do I know about 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)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]