Re: Illegal attempt to establish a relationship 'xyz' between objects in different contexts

2009-10-12 Thread Alexander Spohr
Am 12.10.2009 um 15:27 schrieb Alex Reynolds: How do I create the new Book entity in the secondary MOC, so that I can still associate it with a pre-existing Owner in the primary MOC? You can’t. Drag a local instance of the owner into you second MOC and connect to that copy. atze

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 04:35 schrieb Ken Thomases: For controlling code completion, search for "XCCodeSenseFormattingOptions" on this page: http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html Thank you Ken, t

Re: Within UITableViewCell: capturing UISegmentedControl event & Row number?

2009-10-18 Thread Alexander Spohr
Frederick, just an idea - from UIView’s documentation: tag The receiver’s tag, an integer that you can use to identify view objects in your application. @property(nonatomic) NSInteger tag Set the tag of each segmented view to the row before you hand it out to the table view. atze

Re: Core data unable to save Date, Name etc.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 20:50 schrieb Harish Yarlagadda: I have a Class Math which extends NSManagedObject and has some dynamic propertiesa. name (String) b. date (Date) I using xcdatamodel for modeling my tables. I am using String and Date respectively from xcdatamodel. I am creating a new match o

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 19.10.2009 um 08:05 schrieb Dave Keck: Any suggestion how to jump from one method parameter prototype to the next to replace them one after the other? Eclipse does that with tab. If I understand you correctly, control-/ Yep, that’s it! I didn’t see it in the prefs. Got it now. Thank y

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 u

Re: Using UISwitch within TabBar Application [iPhone]

2009-10-27 Thread Alexander Spohr
Am 27.10.2009 um 15:51 schrieb Mick Walker: I set the Files Owner in IB to SocialViewController and wire up all of the outlets. However when I run the program, all runs fine until I attempt to switch to the view in question, I get the error: 'NSUnknownKeyException', reason: '[ setValue:f

Re: can the button responce the second click before the first is finished before?

2009-10-28 Thread Alexander Spohr
Am 28.10.2009 um 10:19 schrieb XiaoGang Li: jump out the for loop if the bStop flag changed to YES. How to implement it? Use another thread to run your for loop. atze ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

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: 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 tra

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 yo

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 stor

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 somethin

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. s

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 add

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 schizoph

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

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" > 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 >

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 y

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 rect

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". > > > > I have the following Core Data object's setup > > ClassA

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: filena

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://deve

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 >> : [<_NSFaultingMutableSet 0x1006eab90> >> addObserver:forKeyPath:

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 i

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 *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 applica

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 r

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

2010-03-13 Thread Alexander Spohr
it is not standard convention. The convention for delegates > is: id. > > 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 de

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 t

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

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 id useful messages like > retain and release generate a compiler warning, whereas > NSObject are fine. > > I could be wrong on this, but I definitely recall thinking it was a stupid > compiler behavior. You c

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

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

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:[

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

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.

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 > 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 the self->? To ma

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

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

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 u

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: 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 vi

Re: Problems with UIButton still calling renamed method

2010-06-28 Thread Alexander Spohr
! > > I'm pulling my hair now on that stupid problem. > > -Laurent. > -- > Laurent Daudelin > AIM/iChat/Skype:LaurentDaudelin > http://www.nemesys-soft.com/ > Logiciels Nemesys Software >

Re: Problems with UIButton still calling renamed method

2010-06-28 Thread Alexander Spohr
as its title! > > I'm pulling my hair now on that stupid problem. > > -Laurent. > -- > Laurent Daudelin > AIM/iChat/Skype:LaurentDaudelin > http://www.nemesys-soft.com/ > Logiciels Nemesys Software

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? >> >

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 att

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 ot

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

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 sw

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

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

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 th

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.

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 crea

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 Dunkel wr

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 al

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: 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: [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 th

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: Programatically Setting Delegate

2009-12-06 Thread Alexander Spohr
help. >> >> unfortunately, since i've 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 Sp

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 s

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 bel

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. >> >>

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 a

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 sim

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 (

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: 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: 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: 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 presentModalViewCon

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 dawn

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 f

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' W

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 wrote: >> Would this not work as well: >> #define GDRelease(x) { [(x) release]; (x) = nil; } >> >> Or even this: >> #define GDRelease(x) [(x) release], (x) = nil;

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 devi

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: http://en.wikiped

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 App

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 euro

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 { > IBOutlet UITableView *tableView; > NSMut

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: 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: 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" ];

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 currentSec

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 - (vo

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

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 selectedObjec

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 id

Re: NSNull vs nil in NSManagedObject setValue: v forKey: k

2010-02-28 Thread Alexander Spohr
Am 01.03.2010 um 08:12 schrieb Eagle Offshore: > NSManagedObject* obj; // gets created somehow > > [obj setValue: nil forKey: @"bar"]; // succeeds where NSDictionary fails > [obj setValue: [NSNull null] forKey: @"bar"]; // fails where NSDictionary > succeeds > > so - this is conceptually buggy

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: 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 o

  1   2   3   >