[iOS] How to test iAd enabled apps

2010-07-09 Thread Meik Schuetz
Hello,
while testing my iAd enabled app on my device the delegate method 
didFailToReceiveAdWithError is called with the error 'Invalid app id/account 
information'. I'd like to make sure that everything works fine before I submit 
the app for review. Is there anyway that I can test, even having the test 
banner, like in the simulator?

Thanks a lot
Meik

___

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


Passing data between NSOperation and main thread

2009-07-26 Thread Meik Schuetz

Dear all,
  I am just starting to test my little application for leaks using  
Instruments. I have got a NSOperation which is doing some JSON  
communication stuff with my server. The NSOperation is sending an  
NSDictionary object back to the main thread (using a delegate and  
performSelectorOnMainThread) when the thread is about to complete.
  It happens that the Leaks instrument is finding leaks just right  
there. To analyse the problem, I created a test app having the same  
communication method in the main thread. Curiously, the Leaks  
instrument is not finding any leak in this test application.
  I believe that the NSOperation's main method is encapsulated in  
some autorelease pool. Is there anything that I need to worry about  
when passing an NSDictionary between threads?


Thanks a lot.
Best regards
Meik
___

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: How to center a custom NSView in a NSScrollView

2009-02-24 Thread Meik Schuetz

Hi Ben,
thanks for you answer and my apologies for answering with that delay.


I've already tried with a custom NSClipView, as explained here:

http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html


This is the standard way to do this.

After working some time on other subjects, I tried the solution with  
the NSClipView again. The custom NSView is still drawn at the bottom  
left corner of the scroll view, and I've got no idea why. What I try  
to archive is the following:


The question is, how can I center a custom NSView in a  
NSScrollView, if

the visible width and/or height is greater than the fixed size of the
NSScrollView?


What does centering mean if the view’s size is larger than that of the
scroll view?

If the visible area (NSScrollView) is GREATER than the fixed size of  
the custom NSView, the custom NSView should be positioned centered in  
the NSScrollView, otherwise, the default behaviour of the scroll view  
should apply. I just want to avoid that the custom NSView stays at the  
bottom left (or top left) corner of the NSScrollView, when there's  
enough space to center it horizontally and vertically.


Thanks for any more information about this subject.

Best regards
Meik

___

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


How to center a custom NSView in a NSScrollView

2009-01-13 Thread Meik Schuetz

Dear all,
I've already tried with a custom NSClipView, as explained here:

http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html

I also tried setting the height/width of the custom NSView to the size  
of the NSScrollView, but somehow I do not get it to work correctly.


The question is, how can I center a custom NSView in a NSScrollView,  
if the visible width and/or height is greater than the fixed size of  
the NSScrollView?


Thanks a lot for any hint.
Best regards
Meik

___

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


NSArrayController bound to an array of strings

2008-11-16 Thread Meik Schuetz

Dear all,
If have seen lots of examples in which a NSTableView is bound to an  
NSArrayController which is bound to an array of entity objects, having  
various properties. However I am now trying to bind a table column to  
an array of strings and I don't seem to get this working. The string  
contents show up correctly, but when I try to modify an existing item,  
or add a new item, I get the error


Error setting value for key path  of object  (from bound object  
(null)): [  
setValue:forUndefinedKey:]: this class is not key value coding- 
compliant for the key .


I got the NSArrayController bound to the NSMutableArray property of my  
AppController class. I set the class to NSMutableString (also tries  
NSString). The NSTableView is bound to the NSArrayController, as well  
as the table column.


Do I really need to create a class which only contains a string  
property to get this working, or is there any trick that I don't know  
about.


Thanks a lot for any suggestions.
Best regards
Meik

___

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: Link aganist

2008-09-11 Thread Meik Schuetz

Hi there,
in the target properties, make sure the header file search path is set  
to the directory in which you've got the 3rd party header files. To  
link the dylib files with the project, click on Project -> Add to  
project and select the necessary dylib files.


Hope that helps.
Meik


On Sep 11, 2008, at 11:04 PM, dexter morgan wrote:


Hello List,
I've a simple c project that uses semaphores.
I've tried to include it inside the main.c

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

but xcode won't to compile it. Anyone can help me?
___

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/cocoa%40consjuri.net

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: API for secured web service communication (WSSE)

2008-09-10 Thread Meik Schuetz

Dear Alex
Thank you for your ideas. As far as I know the WebServiceCore does not  
support message encryption and credentials, and unfortunatly this is  
exactly what I need.


You are completly right when you compare Cocoa with Win32 programming,  
I just hoped there would be a simple solution to be able to focus on  
business related problems instead of worrying about message  
transportation.


Thanks again
Best regards
Meik

On Sep 10, 2008, at 23:45, Alex Kac <[EMAIL PROTECTED]> wrote:

As someone who has written many of these over the years on Windows  
and recently in Cocoa - its important to note that all of these  
cloud computing methodologies are just HTTP POST and GET at the  
basic level. This is an area that .NET works great in, but if you  
use Win32 you are at a level of hurt that makes Cocoa look like a no  
brainer :)


Also I find that each implementation of secured web services is  
always a bit different. You can find Cocoa SOAP classes out there as  
well as REST examples. But at the simplest level you can get SSL  
access via just a plain https:// URL within CFNetwork or the NS  
methods.


Also check out WebServicesCore.
http://developer.apple.com/documentation/Networking/Conceptual/UsingWebservices/1_intro_folder/chapter_1_section_1.html

I wouldn't use it myself as its not my cup of tea, but it may help.  
Here is another thread on using WebServicesCore:

http://forums.macrumors.com/showthread.php?t=509880

Maybe some of that will help. Its hard to say because "secured web  
service" is so generic.


On Sep 10, 2008, at 5:08 PM, cMeik Schuetz wrote:


Dear all,
 Did anyone made experiences creating a native client application,
which communicates with a secured web service? Is there any API which
I could use to accomplish this? In times where everyone is talking
about SOA and cloud computing I find it hard to believe that there's
nothing more sophisticated than doing a HTTP POST/GET request
transmitting clear text to the server...or using Java...

Thanks a lot
Best regards
Meik


Alex Kac - President and Founder
Web Information Solutions, Inc.

"The optimist proclaims that we live in the best of all possible  
worlds; and the pessimist fears this is true."

-- James Clabell





___

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]


API for secured web service communication (WSSE)

2008-09-10 Thread Meik Schuetz

Dear all,
  Did anyone made experiences creating a native client application,  
which communicates with a secured web service? Is there any API which  
I could use to accomplish this? In times where everyone is talking  
about SOA and cloud computing I find it hard to believe that there's  
nothing more sophisticated than doing a HTTP POST/GET request  
transmitting clear text to the server...or using Java...


Thanks a lot
Best regards
Meik
___

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]


How to create a GUID?

2008-09-06 Thread Meik Schuetz

Dear everyone,
  I feel kind of embarrassed to ask, but could someone lead me the  
way on how to create an globally unique ID (such as for example  
d73e066c-cc88-4d66-be42-94dc091bb571) ?


Best regards and thanks to everyone.
Meik
___

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: Subclassing NSCoder

2008-08-31 Thread Meik Schuetz

Dear Michael,
  thank you very much for your valuable information - I definitively  
will have a look at your MAKeyedArchiver, just to learn how it's done.  
The idea of implementing the xmlRespresentation methods is just great  
and serves perfectly.


Once again, thanks a lot for your time.
Best regards
Meik

On Aug 31, 2008, at 6:30 PM, Michael Ash wrote:

On Sun, Aug 31, 2008 at 11:45 AM, Meik Schuetz <[EMAIL PROTECTED]>  
wrote:

Dear everyone,
I am trying to create my own NSCoder implementation to serialize  
objects to
a XML format which would like to use to communicate with WCF  
service. The
serialization is already done and I had no problems do it, however  
I've got

some conceptional questions about the de-serialization:

Given the serialized XML:

  HELLO WORLD
  True
  12
  
  THIS IS THE SECOND INSTANCE
  False
  4711
  
  1
  2
  3
  
  
  1
  2
  3
  


How would you de-serialize the node  (which is a  
composite
value of type CompositeType, having the attributes stringValue,  
boolValue,

intValue, compositeValue and arrayOfString)?

1) Would you store information about the type in the XML and let the
NSCoding subclass have the intelligence to create and initialize  
the object

(ex. via NSClassFromString)?
2)  Or would you place this intelligence in the entity object's
:initWithCoder? If so, how would you create and initialize the  
composite

object passing the Coder reference?


You have to store type information in the XML. There's no other place
for you to get it. You can't make that decision in -initWithCoder:,
because -initWithCoder: supposes that you have *already* discovered
the type and allocated an instance of the class in question. It's like
trying to find your friend's phone number by calling him to ask him
what it is.

That said, I'm not sure that NSCoder is a good API for you to use for
this in any case. Your XML looks like it's a typical XML document,
with a tree structure of fairly regular values. NSCoder is an API for
encoding arbitrary object graphs, which can include disconnected sets,
multiple references to a single object, and even cycles. It can encode
arbitrary objects, arbitrary data for those objects, and arbitrary
relationships between them.

NSKeyedArchiver can already produce XML. If you look at it, you'll
find that it's very confusing. This is because of all the features it
supports. Since XML is a tree structure, it has to do some fancy
things to support arbitrary relationships.

So if not NSCoder, then what? I'd suggest a simpler custom API, such
as a general understanding that your classes will implement a
-xmlRepresentation and -initWithXMLRepresentation: method pair,
possibly creating and using NSXMLNode instances. This would allow you
to create and decode XML without needing to go through an NSCoder.

If you still do want to create an NSCoder subclass, then you might
find mine helpful as some sort of guide. It's called MAKeyedArchiver
and you can download it here:

http://www.mikeash.com/?page=software/source.html

It's intended to be a general-purpose archiver which writes to a
custom binary file format, but you may (or may not) find its general
design and approaches to be useful.

If you do take a look at it, you should beware that I wrote it at a
time when I was sure that the PowerPC 32-bit architecture was
immortal, so the code makes a lot of bad assumptions about the size
and endianness of basic data types. It should work fine on i386, but
the archives won't be cross-architecture compatible. It will probably
crash on PPC64 or x86-64.

The need for MAKeyedArchiver has pretty much gone away, since Cocoa's
built-in archivers have gotten a lot faster than they were when I
wrote it. But just in case anyone happens to have a burning desire to
fix the deficiencies I mentioned above, patches are welcome.
___

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/cocoa%40consjuri.net

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]


Subclassing NSCoder

2008-08-31 Thread Meik Schuetz

Dear everyone,
I am trying to create my own NSCoder implementation to serialize  
objects to a XML format which would like to use to communicate with  
WCF service. The serialization is already done and I had no problems  
do it, however I've got some conceptional questions about the de- 
serialization:


Given the serialized XML:

HELLO WORLD
True
12

THIS IS THE SECOND INSTANCE
False
4711

1
2
3


1
2
3



How would you de-serialize the node  (which is a  
composite value of type CompositeType, having the attributes  
stringValue, boolValue, intValue, compositeValue and arrayOfString)?


1) Would you store information about the type in the XML and let the  
NSCoding subclass have the intelligence to create and initialize the  
object (ex. via NSClassFromString)?
2)  Or would you place this intelligence in the entity  
object's :initWithCoder? If so, how would you create and initialize  
the composite object passing the Coder reference?


Hope I made my problem more or less understandable
Best regards
Meik

___

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]


Releasing objects causes BAD_ACCESS

2008-07-07 Thread Meik Schuetz

Dear all,

according to the document

http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html

the connection object as well as the receivedData object are released  
in the connectionDidFinishLoading delegate. However, while debugging,  
I receive an BAD_ACCESS violation doing the release. Can anyone please  
give me some insight on why this is happening? Is there any strategy/  
debugging tool that helps me to find objects that should have been  
released or should I just rely on GC?


Thanks so much
Best regards
Meik

___

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: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Meik Schuetz
Dear mmalc,
Thanks for your concerns - I confess that I was not very specific about my
"frustrations": They are more related to IB than Core Data or MVC. Having a
first look at Core Data and looking back to 20 years in this business and
various programming languages and frameworks I believe I won't see anything
too arqward :) 

Best regards and thanks again
Meik 

On 3/4/08 9:38 PM, "mmalc crawford" <[EMAIL PROTECTED]> wrote:

> 
> On Mar 4, 2008, at 1:18 PM, Meik Schuetz wrote:
> 
>>  I am also just starting learning Cocoa and Core Data
>> 
> Just for the sake of repeating it...
> *Don't*.
> 
>> I find also find it frustrating
>> 
> This is not surprising.  The documentation makes clear that Core Data
> is not a beginner technology:
> 
> Before You Start
> Core Data is not an entry-level technology. It leverages many other
> Cocoa technologies, including memory management, key-value coding, and
> key-value observing. You must understand these technologies to use
> Core Data effectively. You also need a solid understanding of data
> modeling and the model-view-controller design pattern as it pertains
> to Cocoa.
> 
> <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/c
> dBeforeYouStart.html#//apple_ref/doc/uid/TP40004318
>> 
> 
> 
> 
> 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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Problem with NSSearchField in Apple's Core Data Tutorial

2008-03-04 Thread Meik Schuetz
Dear Jamie,
  I am also just starting learning Cocoa and Core Data and coming from the
C#/NET group I find also find it frustrating and than very elegant at the
same time - I believe the frustrating part will just disappear with time to
get used to it all.
  I just looked at your posted source code and I could make search work
after disabling the Search Predicate Binding for the Search Field and
defining the Search Predicate Binding on the Search Field Cell (click
2-times on the NSSearchField). Don´t ask me why (yet) I need to click two
times...:)

Best regards
Meik


On 3/4/08 8:41 PM, "Jamie Phelps" <[EMAIL PROTECTED]> wrote:

> I am trying to follow Apple's Core Data tutorial > and I am stuck on getting the NSSearchField to actually work.
> Another list member was helping me off-list and sent me a working nib
> file. When I dropped it into my project, however, it did not work; the
> search field accepts input but the filter is apparently not applied to
> my NSTableView.
> 
> At this point, I'm not sure where I might be going wrong, so I
> uploaded my project to the web. If anyone can take a look and help me
> decipher where I'm off track I'd greatly appreciate it.
> > 
> 
> Thanks,
> Jamie
> ___
> 
> 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/cocoa%40consjuri.net
> 
> 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: Binding an entity object (not an entity attribute) to a Table View Column

2008-02-21 Thread Meik Schuetz

Dear Quincey,
  Yes, I have tried that already with the same experience as you. I needed
to rebind the column and to set its keypath to empty (as well as .self).
However this did not work either, got a lots of messages in the debugger
console and the table stayed empty.
  Do you have any other idea that might show me the right correction?

Many Thanks
Meik

On 2/21/08 12:09 AM, "Quincey Morris" <[EMAIL PROTECTED]> wrote:

> 
> On Feb 20, 2008, at 11:30, Meik Schuetz wrote:
> 
>> Cleaning the ModelKeyPath, unfortunately does not
>> resolve the problem.
> 
> I've noticed that IB3 seems to have bug where it ignores an attempt to
> delete the controller key-path field in a binding. The field in the
> inspector palette does empty, but if you select a different object and
> then return to the binding, the key-path is back in there.
> 
> Did you try unbinding and re-binding? That gives you an empty key-path
> for real.
> 
> 
> ___
> 
> 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/cocoa%40consjuri.net
> 
> 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]