Re: Core Data Multiuser

2012-07-15 Thread Alexander Spohr
Am 15.07.2012 um 08:12 schrieb Eli Bach2: On Jul 14, 2012, at 5:18 AM, Alexander Spohr wrote: Am 13.07.2012 um 21:38 schrieb Flavio Donadio: Use WebObjects and EOF (the big mature brother of CoreData) on the server! We feed multiple hundred thousand iOS devices daily with it - as does

Re: Core Data Multiuser

2012-07-14 Thread Alexander Spohr
Am 13.07.2012 um 21:38 schrieb Flavio Donadio: What do you guys think about it? Is it a bad idea? I've studied a lot of alternatives (BaseTen, ODBC, Web Services), but I can't wrap my head around them... Use WebObjects and EOF (the big mature brother of CoreData) on the server! We feed

Re: Localization based on location

2012-06-04 Thread Alexander Spohr
Am 03.06.2012 um 13:24 schrieb John Tall: a user in Germany will get the entire apps in German even if the rest of the phone is configured to run in English. This is not true as far as my iOS devices are concerned. I can switch it to any language and the next app start will show the app in

Re: sudden errors

2012-02-28 Thread Alexander Spohr
Is ViewManager.h still in your projects file list? Am 28.02.2012 um 10:45 schrieb H. Miersch: i just ran a little test: i went into my appcontroller.h and turned the #import ViewManager.h line into a comment, then tried to build. result: EXACTLY the same errors. it's like that line isn't

Re: Why is a button in a window not redrawn when I change its state?

2011-07-04 Thread Alexander Spohr
Your Button has to draw itself after it called its action. You try to change state while you are still in the action. Did you try to performSelector after 0.0? Am 04.07.2011 um 17:07 schrieb Ulf Dunkel: In my app's main window, I have a button which should kill a process from the running

Re: Memory Management for an Array

2011-06-13 Thread Alexander Spohr
The shown memory handling is wrong. Am 13.06.2011 um 16:31 schrieb Bing Li: + (NSString *)read:(NSString *)xml Path:(NSString *)xPath This methods signature should be read:path: with a lowercase p. { // The Instruments indicated the following line got memory leaks. The amount of

Re: How to define allowed file extensions in Info.plist?

2011-05-25 Thread Alexander Spohr
Ulf, das ist ein Array, warum tust Du also nicht einfach alle Extensions da rein? Oder habe ich Deine Frage nicht verstanden? Gruß, atze Am 24.05.2011 um 22:38 schrieb Ulf Dunkel: Hi Kyle. On 24.05.2011 17:10, Kyle Sluder wrote: On Tue, May 24, 2011 at 7:05 AM, Ulf

Re: How to define allowed file extensions in Info.plist?

2011-05-25 Thread Alexander Spohr
Sorry for replying in German. I wanted to reply off list only but hit 'reply to all'. Translation: That’s an array. Why don’t you just put all your extensions into it? Am 25.05.2011 um 16:38 schrieb Alexander Spohr: Ulf, das ist ein Array, warum tust Du also nicht einfach alle Extensions da

Re: iOS nib weirdness...

2011-05-04 Thread Alexander Spohr
Is your viewController a subclass of UITableViewController? Then your nib is not loaded. UITableViewController is broken. It does not keep the contract of initWithNibName:bundle: atze Am 04.05.2011 um 16:00 schrieb Steve Christensen: I'm working on an app that uses a tab bar. I

Re: Show UIActivityIndicatorView asynchronously

2011-04-28 Thread Alexander Spohr
Am 28.04.2011 um 12:26 schrieb Philip Vallone: Hi, I have a UIViewController that can take a few seconds to load. The view searches an XML file and eventually displays the resuts. I want to show a UIActivityIndicatorView while the view loads. Unfortunately they are on the same thread.

Re: Accessing NSWIndowController attribute from a subview in IB

2011-04-28 Thread Alexander Spohr
Am 28.04.2011 um 13:28 schrieb Ben Golding: I have a document-based app which loads a couple of NSWindowController subclasses. That's fine. In one of the subclasses, I load a nib with a NSView subclass. It wants to access one of the instance vars in the window controller subclass. I

Re: How to simulate key press events

2011-04-20 Thread Alexander Spohr
Am 20.04.2011 um 08:59 schrieb Abhijeet Singh: I tried to simulate Esc key press This should make you feel that you do something wrong. What i am trying to do now is when user try to click on some other row while the current row is in edit mode I want to ask him that the current record is

Re: The dreaded UITableView won't refresh problem.

2010-10-13 Thread Alexander Spohr
Am 12.10.2010 um 23:55 schrieb G S: - (UITableViewCell*) tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath { UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@MyIdentifier]; if (cell == nil) { cell = [[UITableViewCell

Re: The dreaded UITableView won't refresh problem.

2010-10-12 Thread Alexander Spohr
Am 12.10.2010 um 21:58 schrieb G S: Wow, nobody has seen this problem? Lovely. I only did when I did something wrong myself... Show more code. atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?

2010-09-27 Thread Alexander Spohr
init methods are instance methods. You are trying to call a class method. there are no init methods in classes. atze Am 27.09.2010 um 02:51 schrieb Jerry Krinock: Yes, but to make a long story short, I was stymied by the rocket science of class clusters and abstract classes. The

Re: Animated mask for UIViews?

2010-09-21 Thread Alexander Spohr
What kind of masks? Bitmaps? Then use UIImageView and transparency. Vectors? UIBezierPath and CGBlendMode might help. atze Am 21.09.2010 um 17:22 schrieb Eric E. Dolecki: I have a SWF that was created where masks are being animated. Now I was asked to do the same thing for an iPhone

GKSession and WLAN

2010-07-05 Thread Alexander Spohr
Hi list, Is GKSession capable of connecting local devices without bluetooth - just using WLAN? The docs say no: A GKSession object provides the ability to discover and connect to nearby iPhones using Bluetooth. No word on WLAN. I have two devices (iPod iPhone) running iOS4 in my WLAN. I

Re: Flushing NSOutputStream gotten from NSNetService

2010-07-04 Thread Alexander Spohr
Am 02.07.2010 um 19:43 schrieb Jens Alfke: On Jul 2, 2010, at 5:36 AM, Alexander Spohr wrote: I have some streams gotten from NSNetServices getInputStream:outputStream:. I send very small chunks (from 1 to 1000 bytes) of data through them. I would like to flush the stream after I wrote

Flushing NSOutputStream gotten from NSNetService

2010-07-02 Thread Alexander Spohr
Hi List, i it possible to flush an NSOutputStream? I have some streams gotten from NSNetServices getInputStream:outputStream:. I send very small chunks (from 1 to 1000 bytes) of data through them. I would like to flush the stream after I wrote a chunk to get the data immediately sent to the

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Alexander Spohr
. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Jun 29, 2010, at 01:41, Alexander Spohr wrote: - Change

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Alexander Spohr
. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Jun 29, 2010, at 01:41, Alexander Spohr wrote: - Change the layout. Does it reflect

Re: Problems with UIButton still calling renamed method

2010-06-29 Thread Alexander Spohr
not ;) Delete your build-directory after you localized. Then build again. Will work. atze Am 29.06.2010 um 09:25 schrieb Laurent Daudelin: On Jun 29, 2010, at 02:32, Alexander Spohr wrote: - Change the layout. Does it reflect in the simulator? The new button I put in my view

Re: Tracking multiple NSURLConnections

2010-06-29 Thread Alexander Spohr
Not sure if I understood the problem. But why not just use the NSURLConnection objects themselves? The delegate methods give you the corresponding NSURLConnection. atze Am 29.06.2010 um 18:00 schrieb lorenzo7...@gmail.com: I have and app that needs to send out multiple connection

Re: Problems with UIButton still calling renamed method

2010-06-28 Thread Alexander Spohr
- Change the layout. Does it reflect in the simulator? - Check the .app for any old nibs. atze Am 29.06.2010 um 07:15 schrieb Laurent Daudelin: I'm not sure what's going on but I must be missing something big. I initially had a round rect button sending a 'signIn:' message to my

Re: NSLog and va_list

2010-06-17 Thread Alexander Spohr
What exactly so you want? Either you have an va_list and want to give it to NSLog? Then use void NSLogv(NSString *format, va_list args); But I think you want to know what the va_list contains. Then you just loop over it. man stdarg will help. Example: void foo(char *fmt, ...)

Re: [iPhone] NSManagedObjectContext save doesn't crash but breaks on objc_exception_throw

2010-06-08 Thread Alexander Spohr
Is there anything in the log? What does save's error parameter return? atze Am 08.06.2010 um 17:53 schrieb Hank Heijink (Mailinglists): Dear all, I've run into the following problem, and I'm a bit stuck - I wonder if you can shed some light on this. I have an iPhone app that uses

Re: Cross XIB references?

2010-06-06 Thread Alexander Spohr
Am 05.06.2010 um 23:14 schrieb Jean-François Brouillet: Consider the situation where I have a root ImageView in IB. I specify the actual image I want it to hold by just filling/ selecting which of the existing images are already present in the project, using the Image input box of the Image

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-27 Thread Alexander Spohr
Am 27.05.2010 um 11:21 schrieb Philip Vallone: Hello, I am passing different types of data to NSData (NSString, NSArray, UIImage). I am trying to find out what kind of data t is so I know how to handle the NSData when I receive it. The below code is an example of how I am trying to

Re: Regarding MVC design pattern

2010-05-20 Thread Alexander Spohr
Am 19.05.2010 um 19:12 schrieb Kyle Sluder: On Wed, May 19, 2010 at 4:38 AM, Sherm Pendley sherm.pend...@gmail.com wrote: If you synthesize your ivars, you can get at the ivar using the self- syntax. self-myFoo = [aFoo retain]; [self-myFoo release]; Why not just using myFoo without

Re: Regarding MVC design pattern

2010-05-18 Thread Alexander Spohr
Am 18.05.2010 um 12:40 schrieb Sai: Unfortunately, when I try to get value from that NSDictionary, I will get exc_bad_access signal, and I follow gdb, the NSDictionary instance seems to be corrupted. So where does it go wrong? Hopefully I state things clearly this time. Thank you all. Do

Re: program termination after releasing self defined NSXMLParser class

2010-04-18 Thread Alexander Spohr
Am 17.04.2010 um 18:44 schrieb Fritz Anderson: On 16 Apr 2010, at 11:34 AM, Alexander Spohr wrote: That means that -parse does not block. It runs in the event loop. I have not found this to be the case. In the context of the documents, and of the customary terms for XML parsing, event

MKMapView crashes if released to early / in the wrong moment

2010-04-16 Thread Alexander Spohr
Hi list. MKMapView is crashing on 3.x if you release it too early, when any of its animations are still in progress. (rdar://7408284) I had crashes in #1 0x32d209c0 in -[MKDotBounceAnimation animationDidStop:finished:] () #1 0x0226f34e in typeinfo name for MKTileRequester () #1 0x314b986a in

Re: program termination after releasing self defined NSXMLParser class

2010-04-16 Thread Alexander Spohr
Am 16.04.2010 um 00:43 schrieb Dominic Dauer: With the purpose to test these simple class I just did the following in the controller class of one view: -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField { XMLParser *parser = [[XMLParser alloc] initWithContentsOfURL:[NSURL

Subclassing and Relationships - different xcdatamodels

2010-03-22 Thread Alexander Spohr
Hi list, I used to create a base model in EOF and group some additional models around it having relationships into the base model. The base model was reusable, the others where project specific. Now I would like to use such a setup with CoreData. Is it possible to 1) create entity BSubclass in

Re: Little HELP with a fetch Request in Core Data

2010-03-16 Thread Alexander Spohr
Try toInvoices.toStatus.statusID = 1001 in your NSPredicate. atze Am 16.03.2010 um 14:02 schrieb Gustavo Pizano: Hello. Well this may be the simplest question ever, but somehow I can't find the answer. I have an entity User, which has a relationShip to-many Invoices, and

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-15 Thread Alexander Spohr
Am 15.03.2010 um 23:22 schrieb Jeff Laing: As I recall, sending variables of type idYourProtocol useful messages like retain and release generate a compiler warning, whereas NSObjectYourProtocol are fine. I could be wrong on this, but I definitely recall thinking it was a stupid

Re: #include CommonStrings.txt - 'no such file' error

2010-03-14 Thread Alexander Spohr
.txt looks wrong. Why not create .h and .m and import the .h? Usually you #import, not #include in ObjC. .h extern NSString *gLeftBracket; .m NSString *gLeftBracket =@; atze Am 14.03.2010 um 06:47 schrieb Steve Cronin: Folks; I have a dozen or so strings that I use over

Re: Which iPhone Program?

2010-03-13 Thread Alexander Spohr
This is not really a Cocoa question... - If you want your application in the store you need Company. - If you want to distribute in a big company (1000 employees) without using the store you want the enterprise. The account is for the whole company. But the one who pays owns the account. So you

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 10:32 schrieb Joanna Carter: All that is needed is to detect whether the ivar is @private and to respect that visibility. If an ivar is private, it should not be visible in the IB designer, regardless of whether it is of type id or not. I’d say no to this. If my class is

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 16:25 schrieb Joanna Carter: My reason for using id is because I want to hold a delegate and call methods on it without compiler warnings. Or have I got the wrong idea there? Yes your idea is wrong. You are free to specify NSObject YourProtocol *delegate; atze

Re: Which iPhone Program?

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 17:03 schrieb Thomas Davie: On 13 Mar 2010, at 11:59, Alexander Spohr wrote: This is not really a Cocoa question... - If you want your application in the store you need Company. This is not true, I currently have two applications in the store, and do not have

Re: NSTimer never being deallocated

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 17:41 schrieb Tobias Jordan: I want to know what's going on inside my app and I've got enough experience in coding to know that just trusting the Apple docs (especially when it's about memory management) is not reliable. Please explain this. If you stick to the memory

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
YourProtocol, it is not standard convention. The convention for delegates is: idYourProtocol. Kevin On 13 Mar 2010, at 07:39, Alexander Spohr wrote: Am 13.03.2010 um 16:25 schrieb Joanna Carter: My reason for using id is because I want to hold a delegate and call methods

Re: Private ivars, not marked as IBOutlet, visible in IB

2010-03-13 Thread Alexander Spohr
Am 13.03.2010 um 18:54 schrieb Joanna Carter: Actually this is how nibs were designed and intended to be used: to be fragments of the object graph loaded at runtime. It is a *very* recent trend to have them exist so independently of File's Owner, and to use the public API to hook up their

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 04:34 schrieb Eli Bach: The operators mentioned on this page, particularly @unionOfSets. http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/KeyValueCoding/Concepts/ArrayOperators.html I have the following Core Data object's setup ClassAClassB

Re: incorrect bitmap date from NSBitmapImageRep from NSDate

2010-03-12 Thread Alexander Spohr
Exactly what does not work? The loading? Or the opengl command? If the latter I suspect that your file is not in the needed format. Does your image have alpha? atze Am 12.03.2010 um 13:09 schrieb Ariel Feinerman: // not work NSData *data = [NSData dataWithContentsOfFile:

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 17:32 schrieb Eli Bach: On Mar 12, 2010, at 5:37 AM, Alexander Spohr wrote: Am 12.03.2010 um 04:34 schrieb Eli Bach: The operators mentioned on this page, particularly @unionOfSets. http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/KeyValueCoding

Re: Use of KVC Array operators

2010-03-12 Thread Alexander Spohr
Am 12.03.2010 um 21:06 schrieb Eli Bach: On Mar 12, 2010, at 12:19 PM, Eli Bach wrote: And I did just try it, and got a binding error: Cocoa Bindings: Error setting value for bound property instanceOfA of object controllerclass: 0x100675780: [_NSFaultingMutableSet 0x1006eab90

Re: [[Class alloc] init] preferable over [[Class instance] retain]?

2010-03-09 Thread Alexander Spohr
Am 09.03.2010 um 22:44 schrieb Luke the Hiesterman: On Mar 9, 2010, at 1:41 PM, Laurent Daudelin wrote: I've been running in that situation and I'm just wondering if there are any advice for/against one or the other method. For example, is: NSMutableArray *anArray =

Re: UIView as opposed to UIViewController...

2010-03-07 Thread Alexander Spohr
Am 07.03.2010 um 03:57 schrieb Jon: I get indications from reading that you shouldn't really subclass UIView in general or to do routine things, and that any time you implement drawRect in the subclass of a UIView, you are taking a performance hit compared to doing some drawing in

Re: Get my custom object from NSDictionary variable

2010-03-05 Thread Alexander Spohr
Am 05.03.2010 um 00:48 schrieb Daniel Káčer: [myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom pairTo:string] forKey:[NSString stringWithFormat:@%d, [myDictionary count]]]; Why don’t you use an NSArray? atze ___

Re: UITableView Won't Update; Crashes with EXC_BAD_ACCESS

2010-02-27 Thread Alexander Spohr
Am 27.02.2010 um 02:16 schrieb Jason Berlinsky: When I remove the NSLog(@%@,self.data), the application doesn't crash, but the UITableView doesn't update. When I replace it with fast enumeration over self.data, I get the crash again (crash log: http://pastebin.com/NDVKLsJC). Any ideas

Re: NSData as value in NSManagedObject

2010-02-20 Thread Alexander Spohr
Am 20.02.2010 um 16:29 schrieb Mikkel Eide Eriksen: NSData *xmlData = (NSData *)[[[treeController selectedObjects] valueForKey:@xml] lastObject]; //HERE'S THE PROBLEM Well, yes. You ask your xml for lastObject. That won’t work. What you want is this: [[[treeController selectedObjects]

Re: Core Data: Insert, Fetch, Re-Fetch. Same Object?

2010-02-11 Thread Alexander Spohr
Am 11.02.2010 um 04:07 schrieb Jerry Krinock: On 2010 Feb 10, at 18:05, Jens Alfke wrote: I've always wondered if I insert a managed object, then later fetch it repeatedly from the same managed object context, do I get the same object every time? Yes, basically. There is only going

Re: Synthesize NSMutableString retain count question

2010-02-03 Thread Alexander Spohr
currentSection = @Some value; has nothing to do with [currentSection setString:@Some value]; The first sets currentSection to a string, the second sets the content of currentSection. a) In the second line you just set the content but you never assigned an NSMutableString to currentSection

Re: Multithread communication

2010-02-03 Thread Alexander Spohr
Am 03.02.2010 um 17:30 schrieb McLaughlin, Michael P.: Could someone recommend the best (most robust) way to pass back data from threads to the main thread? Is there a good way to probe crashes such as these? Right now, I cannot even tell where the error is really occurring. Try -

Re: Why can't I use any object as a key in a dictionary?

2010-02-01 Thread Alexander Spohr
Am 01.02.2010 um 16:35 schrieb Charles Jenkins: On 2010-02-01 03:26, Roland King wrote: By the way, CALayer is a KVC compliant class so you can in fact just store a reference to an arbitrary object in it with [ layer setValue:value forKey:@KeyForObjectAssociatedWithLayer ]; Roland,

Re: UIButton's Sender Control Events

2010-01-25 Thread Alexander Spohr
Please send code that would work. All broken examples are clearly not code you can use and therefore very bad examples for what you are trying to achieve. Am 25.01.2010 um 00:22 schrieb Chunk 1978: i wanted to simplify the code (one button per method) by using the buttons UIControlEvents of

Re: UIButton's Sender Control Events

2010-01-24 Thread Alexander Spohr
If each event needs different action why not program different actions? What is the benefit of having one method containing a big if-else-else construct? atze Am 24.01.2010 um 19:12 schrieb Chunk 1978: linking several control events to one method is what i'm trying to do, but i do

Re: [iphone] Release Navigation View Controller Question

2010-01-18 Thread Alexander Spohr
Am 18.01.2010 um 14:40 schrieb Philip Vallone: Hi this is a follow up question on memory management. In my class BrowseViewController, I have a UITableView and 2 NSMutableArrays. @interface BrowseViewController : UIViewController UIActionSheetDelegate { IBOutlet UITableView

Re: newbie question -views and MCV model

2010-01-15 Thread Alexander Spohr
Am 15.01.2010 um 05:57 schrieb Martin Beroiz: My problem is with the controller. I subclassed NSViewController (with the name FilterBankViewController) and tried to bind the class with the file's owner. But I noticed that in IB I cannot do that, actually the bind tab says it's Not

Re: NSWeekCalendarUnit and DIN 1355 / ISO 8601

2010-01-15 Thread Alexander Spohr
Filed a bug, Problem ID: 7545433 Am 13.01.2010 um 14:11 schrieb Alexander Spohr: Hi list, I just fell over NSWeekCalendarUnit. It delivers the week of a date. Sadly it seems to do so only for the US but not for e.g. Germany and all ISO 8601 countries (most of europe) - except UK

NSWeekCalendarUnit and DIN 1355 / ISO 8601

2010-01-13 Thread Alexander Spohr
Hi list, I just fell over NSWeekCalendarUnit. It delivers the week of a date. Sadly it seems to do so only for the US but not for e.g. Germany and all ISO 8601 countries (most of europe) - except UK. The current week is 3 in the US but 2 in Europe (except UK ;) For a list see:

Re: iPhone: diagnose crashes

2010-01-11 Thread Alexander Spohr
Your App crashes in MainViewController.m line 113. You send a message to a dead object in there. atze Am 11.01.2010 um 14:50 schrieb Eric E. Dolecki: I have an app that I am trying to debug. When I run in Simulator I have no problems. When I am tethered to my dev machine with a

Re: NS_INLINE and obj = nil;?

2010-01-02 Thread Alexander Spohr
Am 02.01.2010 um 05:09 schrieb Stephen J. Butler: If you really wanted a macro, it would look like this: #define GDRelease(x) do { [(x) release]; (x) = nil; } while (0) What is the do while good for? Would this not work as well: #define GDRelease(x) { [(x) release]; (x) = nil; } Or even

Re: NS_INLINE and obj = nil;?

2010-01-02 Thread Alexander Spohr
Am 02.01.2010 um 17:28 schrieb Clark Cox: On Sat, Jan 2, 2010 at 6:29 AM, Alexander Spohr a...@freeport.de wrote: Would this not work as well: #define GDRelease(x) { [(x) release]; (x) = nil; } Or even this: #define GDRelease(x) [(x) release], (x) = nil; No, neither would work as well

Re: Program not working under Snow Leopard

2009-12-28 Thread Alexander Spohr
Is the delegate of your NSURLConnection retained while the request runs? atze Am 27.12.2009 um 16:23 schrieb insanely...@mac.com: I'm working on a program that manages file downloads via NSURLConnection. I was developing under Leopard and the program was working just fine. I've

Re: extending automatic core data entity classes

2009-12-28 Thread Alexander Spohr
Am 28.12.2009 um 07:59 schrieb Damien Cooke: iPhone Simulator 3.1 (139.1), iPhone OS 3.1.2 (7D11) *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSManagedObject returnAdditiveWarningByType]: unrecognized selector sent to instance 0x3a2d580' What

Re: IPhone- Datasensitive bug from CoreData...

2009-12-25 Thread Alexander Spohr
Am 25.12.2009 um 06:40 schrieb Brian Bruinewoud: I don't understand how the value of 'score' breaks things. If I get rid of the negation in this code: int score; if( self.isGood ) score = sender.tag; else score = - sender.tag; everything works fine:

Re: Is there a warning for this?

2009-12-24 Thread Alexander Spohr
Am 24.12.2009 um 09:26 schrieb Brian Bruinewoud: All, I had this code: [[fetchedResultsController sections] count] Which always returned zero even thought sglite showed entries in the table. When I put a break point on the getter, nothing happened. Amazingly, it dawned on me

Re: Autorotation for a subview

2009-12-23 Thread Alexander Spohr
Eric, 1. Can’t you use autoresizingMask for all subviews? You can do pretty much automagic with it. Just let your Button hang to the lower and right borders. A view should not resize/reposition itself. 2. Don’t put the view of controller B into a view of controller A. Why not

Re: Remember Window and Inspector Positions

2009-12-21 Thread Alexander Spohr
Am 21.12.2009 um 20:22 schrieb David Blanton: I have a main window and a few floating inspectors. I would like to come back to the position the user left these upon relaunch. Do I have to program this or is there some Cocoa or other construct that does this for me? You can put that into

Re: NSTableview datasource issues

2009-12-20 Thread Alexander Spohr
Did you set a breakpoint on the data source methods? Please reread about memory management. Your code is full of wrong retains. Why is segmentDict a global variable? You just assign to it but never release it. segmentIndustry is a class and should be named with a capital S. segmentIndustryData

Re: NSTableview datasource issues

2009-12-20 Thread Alexander Spohr
Am 20.12.2009 um 18:32 schrieb aronis...@afroamerica.net: I did not give you all the methods in my code (it is too lengthy). segmentDict is a global variable because I need it somewhere else. Sounds like bad design ;) a dealloc method takes care of releasing the arrays and dictionary.

Re: pls explain rotated iPhone coordinates to me

2009-12-15 Thread Alexander Spohr
This seems wrong. When do you call this code? Usually it is just enough to set the springs of your scroll view in IB. Then, after rotation, refit your content. atze Am 15.12.2009 um 03:46 schrieb Matt Neuburg: I am not grasping how coordinates work in a rotated iPhone app, and I'm

Re: Bluetooth failure

2009-12-13 Thread Alexander Spohr
Am 13.12.2009 um 03:15 schrieb Rob Keniger: On 12/12/2009, at 11:24 PM, Alexander Spohr wrote: As far as I know, the Simulator has no GameKit as it does not exist under Mac OS. That's actually not quite true, GameKit exists on the simulator but it (very unfortunately) cannot use

Re: Bluetooth failure

2009-12-12 Thread Alexander Spohr
As far as I know, the Simulator has no GameKit as it does not exist under Mac OS. So this can not work. Therefore your problem is not the iPod but the Mac. You need two iPhones/iPods to do GameKit tests. atze Am 12.12.2009 um 01:42 schrieb Development: I have a Gen 2 iPod and the

Re: Question about touchesBegan

2009-12-10 Thread Alexander Spohr
Am 10.12.2009 um 14:46 schrieb Eric E. Dolecki: What I am trying to do now is when I create the subView with the tuner bar, I am setting it's view's bounds to something much smaller than the whole screen and then animating it up. I think this approach might work. I thought you did that

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Am 09.12.2009 um 20:32 schrieb Eric E. Dolecki: I have a main view that uses touchesBegan. I call up and display a subView on top of the main view, and that subView has it's own touchesBegan. The subView obstructs the touchesBegan in the main view. Is this expected? Yes. Otherwise no

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Am 10.12.2009 um 04:34 schrieb Eric E. Dolecki: Well - I wonder if it's possible to enable touches in a sub view but not for the entire view - just part of it. I have a view with buttons in it. I call up a sub view that requires touches for swiping... I want the buttons in the view below

Re: Question about touchesBegan

2009-12-09 Thread Alexander Spohr
Um, have to follow up to myself... Am 10.12.2009 um 08:02 schrieb Alexander Spohr: Am 10.12.2009 um 04:34 schrieb Eric E. Dolecki: Well - I wonder if it's possible to enable touches in a sub view but not for the entire view - just part of it. I have a view with buttons in it. I call up

Re: Programatically Setting Delegate

2009-12-06 Thread Alexander Spohr
imported both UIKit and my controller class into my custom UIImageView class, my question is wasn't what does that error mean, but why am i receiving it. On Sat, Dec 5, 2009 at 6:45 AM, Alexander Spohr a...@freeport.de wrote: http://lmgtfy.com/?q=error+request+for+member+is+something

Re: Programatically Setting Delegate

2009-12-05 Thread Alexander Spohr
http://lmgtfy.com/?q=error+request+for+member+is+something+not+a+structure+of+union atze Am 05.12.2009 um 09:12 schrieb Chunk 1978: i have a UIViewController that i'm setting as the delegate for my custom UIImageView class. from my custom UIImageView class i want the delegate to

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-04 Thread Alexander Spohr
Am 04.12.2009 um 10:09 schrieb Philip Vallone: Next I had a syntax error when declaring my NSArray and like you said it was pointing to an empty array: NSArray* result = [NSArray arrayWithArray:PerformXMLXPathQuery(xmlData, @//mynode)]; Why are you putting the contents of the

NSConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Hi list, is NSConnection retaining its delegate? (At least as long as it is collecting data) I thought contract is that a delegate is never retained? This behavior requires to _always_ send cancel to the connection before you release the delegate. Otherwise the NSConnection might still hold on

Re: NSURLConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Lee: On Wednesday, November 25, 2009, at 12:15PM, Alexander Spohr a...@freeport.de wrote: is NSConnection retaining its delegate? (At least as long as it is collecting data) FWIW I've never used NSConnection, but in the following quick and dirty code it did not retain the delegate I gave

Re: NSURLConnection retaining delegate?

2009-11-25 Thread Alexander Spohr
Am 25.11.2009 um 23:25 schrieb Jerry Krinock: On 2009 Nov 25, at 12:53, Alexander Spohr wrote: I meant NSURLConnection. * Normally the delegate is receiving and storing headers, data and errors for you. You should retain the delegate as long as you are interested in the headers

Re: Core Data and +[NSExpression expressionForFunction:...]

2009-11-25 Thread Alexander Spohr
Ron, I am not sure if that works at all. I never fetched using methods that are not part of the database as a qualifier. Your code has to be very slow because it would need to fetch all Photos and then call distanceFromLatitude:longitude: on each. Why not qualify directly using a bounding

Re: drawRect method not called after several hours...

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 13:30 schrieb Boris Prohaska: It does GUI updates multiple times a second. How? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Transparency Help 2

2009-11-23 Thread Alexander Spohr
Am 23.11.2009 um 19:01 schrieb R T: Given: A litho Image, Black White pixels only. I want to show just the Black Pixels in a subclassed NSView. Underlay all white pixel with an alpha of 0 and composite that? atze ___ Cocoa-dev mailing

Re: tiffs on pasteboard

2009-11-20 Thread Alexander Spohr
Am 20.11.2009 um 03:04 schrieb Chris Idou: But what are the rules and conventions? Why would Finder put the icon in the pasteboard on the assumption that is what the user wants, but TextEdit would paste in the actual file on the assumption that is what the user wants? It seems

Re: Performance

2009-11-18 Thread Alexander Spohr
Am 16.11.2009 um 07:14 schrieb Chris Carson: The first class is the model that submits asynchronous bulk reads to the USB device. The callback for these reads copies the received data from the buffer asynchronous filled by the request and into an NSData object that is allocated and added

Re: [iPhone] Implement a screen like contacts screen

2009-11-11 Thread Alexander Spohr
tableHeaderView atze Am 11.11.2009 um 14:45 schrieb Tharindu Madushanka: Hi Could I get some points on how to create a iPhone Contacts like screen. I think parts starting from mobile number is possible with Editable Detail view. But the Add Image and Name part is confusing. so

Re: Adding a vertical scrollbar to a multiline textfield

2009-11-10 Thread Alexander Spohr
Am 10.11.2009 um 12:45 schrieb Ian Piper: I hope someon can advise as to the best way to do what I want. I have a multiline textfield that receives a very long piece of text. I wanted to add a vertical scrollbar. I tried putting the multiline textfield inside a scroll view but I'm not

Re: Obtaining selected text from the frontmost application

2009-11-10 Thread Alexander Spohr
Services? At least if the user wants you to get the text. Otherwise? Would be a security issue and should not be possible. atze Am 10.11.2009 um 17:55 schrieb Nava Carmon: Hi, How do I approach to this task? Which technologies to use and whether there are example of something

Re: Core-Data : how to merge two contexts ?

2009-11-07 Thread Alexander Spohr
Am 07.11.2009 um 09:39 schrieb Eric Morand: The NSManagedObjectContext is your scratchpad. If you want something inside it fetch it or create it. If you change something, the change will be promoted. Hi atze, Actually, the change will be promoted only when they are committed to the

Re: NSDate / NSXMLParser

2009-11-04 Thread Alexander Spohr
The parser CAN parse the timezone and adjust the date accordingly. To parse this date: 20091021T121942+0200 I use this format: MMdd'T'HHmmssZZZ and it works fine. The only thing you need is to find the right timezone format string. Yours might be '-'MM'-'dd'T'HH':'mm':'ssZ Not sure if

Re: Handling projects with several XIBs

2009-11-02 Thread Alexander Spohr
Am 02.11.2009 um 11:55 schrieb Tobias Jordan: The problem I am currently having is that when updating the interface I have to a) make my changes to every localization (en, ge, fr, jp, etc.) or b) re-create all of the localizations which isn't that easy to handle since I am not the one

Re: Problem with allocating memory

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:27 schrieb Michael Abendroth: Why is this happening? How should we know if you don’t provide the faulty code? atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Displaying a view modally (iPhone)

2009-10-21 Thread Alexander Spohr
Mike, you need a view that has the size of the window to cover it completely. Otherwise touches will go down the responder chain and reach other views. What happens while you show the spinner? If you load data from the net show the UIApps spinner at the top. atze Am 21.10.2009

  1   2   >