Re: Localization under Catalina

2020-05-27 Thread Alexander Reichstadt via Cocoa-dev
I'm familiar with auto-layout actually with other projects. I thought it was needed for the "new" way of localising because you need to resize captions to fit longer strings (in the case of German for example). I'll definitively look into it. Is there a facility in Xcode to extract the current

Text drop into other text apps

2014-11-02 Thread Alexander Reichstadt
Hi, I'd like to write @test to the pasteboard in response to a tableview drag to end up in another app's textfield. I see that all my methods are called accordingly, but when I release the mouse button, nothing is inserted nor does the cursor react by reflecting the insertion point if the

Re: Text drop into other text apps

2014-11-02 Thread Alexander Reichstadt
Hi On 02 Nov 2014, at 19:11, Ken Thomases k...@codeweavers.com wrote: On Nov 2, 2014, at 12:43 PM, Alexander Reichstadt l...@icloud.com wrote: As to why your drop is not being accepted, have you called -setDraggingSourceOperationMask:forLocal: on the table view to set an operation mask

SpriteKit Joints on Mac OS X

2014-04-28 Thread Alexander Reichstadt
Hi, On Mac OS X using SKPhysicsJointPin gives me some problems: - (void)pjoinBodyA:(NSString *)nameA andB:(NSString *)nameB { SKSpriteNode *bodyA = [self childNodeWithName:nameA]; SKSpriteNode *bodyB = [self childNodeWithName:nameB]; if (bodyA.position.xbodyB.position.x){

Re: SpriteKit Joints on Mac OS X

2014-04-28 Thread Alexander Reichstadt
Thanks. I logged a bug. Alex Am 29.04.2014 um 03:04 schrieb Graham Cox graham@bigpond.com: On 28 Apr 2014, at 6:53 pm, Alexander Reichstadt l...@mac.com wrote: Before wasting further time, are joints on Mac OS X SpriteKit a known issue at this time? I don't know

Memoryleak in SpriteKit?

2014-04-09 Thread Alexander Reichstadt
Hi, in trying to find the source of a memory leak I think to have in my project, I ended up creating a plain SpriteKit project from template and did the following: - (IBAction)test:(id)sender { if (self.skView.scene.children.count0){ [self.skView.scene removeAllChildren]; } else

Re: Random crashes

2014-04-02 Thread Alexander Reichstadt
so. The instance being accessed was no longer available causing the crash. Thx Am 02.04.2014 um 11:12 schrieb Uli Kusterer witness.of.teacht...@gmx.net: On 01 Apr 2014, at 23:19, Alexander Reichstadt l...@mac.com wrote: Is there a way to find the root cause of such a crash? Vague idea: Set

Random crashes

2014-04-01 Thread Alexander Reichstadt
Hi, in a project using the default Spritekit template all works fine until one leaves the app and switches to another process, which results in random crashes without a backtrace. After having switched to another process and returning to the running or also paused game, it's only a question

textView, writeCell to clipboard, how to read from clipboard

2012-07-16 Thread Alexander Reichstadt
Hi, in NSTextView there is a method to handling writing textattachmentcells to the clipboard. I implemented the following and it seems to work: - (NSArray *)textView:(NSTextView *)aTextView writablePasteboardTypesForCell:(id NSTextAttachmentCell)cell

NSTextAttachment

2012-07-16 Thread Alexander Reichstadt
Is there any way to have an NSTextView to hold text and custom data-widgets that are unrelated to filewrappers? I don't want NSTextAttachmentCell I think, because without a file it doesn't work, without tricking around it does not go in and out of the pasteboard, and NSTokenAttachment is some

Re: NSTextAttachment

2012-07-16 Thread Alexander Reichstadt
16.07.2012 um 23:51 schrieb Jens Alfke: On Jul 16, 2012, at 2:15 PM, Alexander Reichstadt l...@mac.com wrote: Is there any way to have an NSTextView to hold text and custom data-widgets that are unrelated to filewrappers? I don't want NSTextAttachmentCell I think, because without a file

NSAttributedString location for drawing, glyph location and baseline

2012-07-15 Thread Alexander Reichstadt
Hi, I have a subclass of NSAttachmentCell which draws itself into an NSTextView. Its y-location is wrong though when drawing the cell using - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *) controlView characterIndex:(NSUInteger)charIndex layoutManager: (NSLayoutManager

Re: NSAttributedString location for drawing, glyph location and baseline

2012-07-15 Thread Alexander Reichstadt
Alexander Reichstadt: Hi, I have a subclass of NSAttachmentCell which draws itself into an NSTextView. Its y-location is wrong though when drawing the cell using - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *) controlView characterIndex:(NSUInteger)charIndex layoutManager

Custom NSTextAttachment

2012-07-13 Thread Alexander Reichstadt
Hi, trying to build a custom subclass of NSTextAttachment I thought it would be fully supported in an NSTextView. In a test project at app launch I insert an attachment: [_textView setString:@This is a test string\rThis is a test string\rThis is a test string\rThis is a test string\rThis

Re: Calculating lineFragment for NSTextContainer

2012-07-12 Thread Alexander Reichstadt
:(NSLineMovementDirection)movementDirection remainingRect:(NSRect *)remainingRect …is stopped being called after editing ended. Why? How can I freeze the layout in the view for after editing ended? Alex Am 20.06.2012 um 01:41 schrieb Graham Cox: On 19/06/2012, at 7:02 PM, Alexander Reichstadt wrote

Re: Calculating lineFragment for NSTextContainer

2012-07-12 Thread Alexander Reichstadt
Oh, it dawns me that this is due to adding an NSTextView instance that is being removed when editing ends. This was in a sample project. Never mind. Am 12.07.2012 um 12:09 schrieb Alexander Reichstadt: Hi, sorry for the delay and thanks for the response, I moved house. Anyway, this all

Calculating lineFragment for NSTextContainer

2012-06-19 Thread Alexander Reichstadt
Hi, for the - (NSRect)lineFragmentRectForProposedRect:(NSRect)proposedRect sweepDirection:(NSLineSweepDirection)sweepDirection movementDirection:(NSLineMovementDirection)movementDirection remainingRect:(NSRect *)remainingRect { call I'd like to calculate the proposedRect in case there are

Instruments, how to fix leak in C Lib

2012-05-02 Thread Alexander Reichstadt
Hi, through Instruments I found a memory leak outside my code in a pqlib, the postgres client library. This is what Leaks prints out: Bytes Used # Leaks Symbol Name 84.81 KB 100.0% 48 PQgetResult 84.81 KB 100.0% 48 pqParseInput3 80.00

Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
Hi, for a couple of reasons we migrated our project from mysql to postgres using PGSQLKit. But we are experiencing problems storing UTF8 data. So far we checked the database to be able to store UTF8. When using pgPHPAdmin to store values with German Umlaute it works. When using PGSQLKit

[Solved] Re: Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
encodedString; } Am 22.03.2012 um 09:09 schrieb Alexander Reichstadt: Hi, for a couple of reasons we migrated our project from mysql to postgres using PGSQLKit. But we are experiencing problems storing UTF8 data. So far we checked the database to be able to store UTF8. When

Re: [Solved] Re: Storing UTF8 Umlauts in Postgres using PGSQLKit

2012-03-22 Thread Alexander Reichstadt
a change today based upon yours to address this. Thanks for patch! -- Andy 'Dru' Satori On Thursday, March 22, 2012 at 6:55 AM, Alexander Reichstadt wrote: The issue was in PGSQLKit. -(NSString *)sqlEncodeString:(NSString *)toEncode { //size_t result; int error; char

Bundled framework not found despite copy build phase and being inside the bundle

2012-03-09 Thread Alexander Reichstadt
Hi, having added the PGSQLKit framework when being bundled it is not found. What I did was adding the framework, making sure it is linked against, making sure the copy buildphase with target frameworks is before the link phase. When I check, the built app bundle does contain the Frameworks

[solved] Re: Bundled framework not found despite copy build phase and being inside the bundle

2012-03-09 Thread Alexander Reichstadt
I found the problem, the bundled framework being in another project did not have the @executable/../Frameworks set as a installation path. dyld: Library not loaded: /Users/Alexander/Library/Frameworks/PGSQLKit.framework/Versions/A/PGSQLKit Am 09.03.2012 um 22:00 schrieb Alexander Reichstadt

Re: How to tell Xcode to forget file

2012-02-09 Thread Alexander Reichstadt
09.02.2012 um 08:48 schrieb Alexander Reichstadt: If you mean to select the file and hit the delete-key, this was the first and what seemed to be the most logical to me. It didn't do anything though. The project behaved as if the file would still be included in a target, but it wasn't anywhere

Re: How to tell Xcode to forget file

2012-02-09 Thread Alexander Reichstadt
Never mind, I found a docu on git and where to look for .git and found it. Thanks Am 09.02.2012 um 09:22 schrieb Alexander Reichstadt: It seems the git repo somewhere stores the project filename outside the source directories. After recreating the project with a new name in the same

How to tell Xcode to forget file

2012-02-08 Thread Alexander Reichstadt
Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get

Re: How to tell Xcode to forget file

2012-02-08 Thread Alexander Reichstadt
Karamov: Hi! You need to remove file from the project tree in XCode. 09.02.2012 9:20, Alexander Reichstadt пишет: Hi, I am loosing my mind here. I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project

UIView is sized out of the blue

2012-01-02 Thread Alexander Reichstadt
Hi, when returning from my detail view the list view is sized out of the blue. in viewDidAppear I do this: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; if ([theSearchbar.text length]){ [theSearchbar becomeFirstResponder]; [self

Re: UIView is sized out of the blue

2012-01-02 Thread Alexander Reichstadt
I found the issue. The navigation bar was first shown and then removed, thus I ended calculating a wrong size. Thanks On 02.01.2012, at 16:17, Alexander Reichstadt wrote: Hi, when returning from my detail view the list view is sized out of the blue. in viewDidAppear I do this: - (void

UIToolbar, can't access buttons added in IB

2011-12-29 Thread Alexander Reichstadt
Hi, in my UIViewController using IB I can add buttons to its view's toolbar bar, I am referring to that bar widget thing at the bottom, just in case someone was as confused as I was at first. Anyway, I can see them in IB as well as in my running app. Yet, when debugging, I found no way to

How to get rid of the back button in UIView

2011-12-29 Thread Alexander Reichstadt
Hi, this might be totally trivial, but all suggestions I found in the docu and on the web failed. I don't want my detail view to show any kind of back button. So from the documentation I came up with the following possibilities: 1. set leftItemsSupplementBackButton to NO 2. set

Re: How to get rid of the back button in UIView

2011-12-29 Thread Alexander Reichstadt
Thanks, this works. On 29.12.2011, at 11:45, lbland wrote: hi- On Dec 29, 2011, at 5:35 AM, Alexander Reichstadt wrote: Please, can someone help? navigationItem.hidesBackButton = YES; ?? ... but maybe your detailed view should be some other type of modal view controller

CoreData inconsistency caching error snafu

2011-12-25 Thread Alexander Reichstadt
Hi, On Xcode 4.2 I am getting some error that makes no sense to me and all similar reports on the web don't seem to apply: CoreData: FATAL ERROR: The persistent cache of section information does not match the current configuration. You have illegally mutated the NSFetchedResultsController's

Re: CoreData inconsistency caching error snafu

2011-12-25 Thread Alexander Reichstadt
Never mind…..I didn't know I need to look after the NSFetchedResultsController……..actually I am not sure what'd be the best to do. I toy around and see what works best. On 26.12.2011, at 02:46, Alexander Reichstadt wrote: Hi, On Xcode 4.2 I am getting some error that makes no sense to me

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
to the Umlaute, and inspecting them inbetween changing to and from percent escaped strings they seem to be handled correctly. Alex Am 22.12.2011 um 02:18 schrieb Ben Kennedy: On 21 Dec 2011, at 4:45 pm, Alexander Reichstadt wrote: NSString *theContent = [[NSString alloc] initWithData:theData

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
\U0094hrchen It should instead say Röhrchen. Is the escape sequence even correct or shouldn't it have two slashes instead? Alex Am 22.12.2011 um 09:49 schrieb vincent habchi: Le 22 déc. 2011 à 09:13, Alexander Reichstadt l...@mac.com a écrit : Yes, you are right, but it does not make

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
OK, I found a way to import it into FileMaker. It looks good when I use DOS Encoding. But when I use kCFStringEncoding derivates I had no luck. I know CF and NSString is toll free bridged, but does this apply to the encodings as well? There is some post from 2000 by Ali Ozer that would suggest

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
: CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingDOSLatin1) ]; Am 22.12.2011 um 10:50 schrieb Jean-Daniel Dupas: Le 22 déc. 2011 à 10:42, Alexander Reichstadt a écrit : OK, I found a way to import it into FileMaker. It looks good when I use DOS

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
and it works without a hitch. Am 22.12.2011 um 14:40 schrieb Mike Abdullah: On 22 Dec 2011, at 09:59, Alexander Reichstadt wrote: Thanks, it works. The following solved the problem, where theChoice is a URL to a local file from an NSOpenPanel: NSData *theData = [NSData

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
://dbase.com/KnowledgeBase/int/db7_file_fmt.htm Am 22.12.2011 um 17:29 schrieb Ken Thomases: On Dec 22, 2011, at 9:54 AM, Alexander Reichstadt wrote: The DBF file format documentation says the header is in binary, then there is a linefeed (\r), then there is the body. Each field has a fixed

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
Mike's advise on getting the subdata. Alex Am 22.12.2011 um 17:29 schrieb Ken Thomases: On Dec 22, 2011, at 9:54 AM, Alexander Reichstadt wrote: The DBF file format documentation says the header is in binary, then there is a linefeed (\r), then there is the body. Each field has a fixed length

NSString looses Umlaute

2011-12-21 Thread Alexander Reichstadt
Hi, NSString eats the Umlaute. How do I tell NSString to not do that? I tried: NSString *theContent = [[NSString alloc] initWithData:theData encoding:NSASCIIStringEncoding]; theContent = [[theContent componentsSeparatedByString:@\r] objectAtIndex:1]; theContent =

Account validation in CocoaTouch for the purchased app

2011-12-20 Thread Alexander Reichstadt
Hi, given an app is sold on iTunes, is there a way for that app to find out which email address was used for the iTunes account when it was purchased? Thanks Alex ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Using Spotlight to query external source

2011-12-17 Thread Alexander Reichstadt
Hi, reading through the spotlight docu I am not sure where to start or if the following is possible. I am trying to find out if a spotlight importer can be used to query external data sources. I know the advantage of spotlight is meant to pre-catalog files in order to quickly return results.

localization nib vs. xib in release build

2011-11-03 Thread Alexander Reichstadt
Hi, there is a problem localizing the resources for my project. The way I went about localizing the original English xib was to select it, add a loc-language, then I localized it, cleaned the build and ran the app. My system is running using German language as setup in system preferences and

Re: How to draw over a control in an NSView

2011-10-31 Thread Alexander Reichstadt
Am 31.10.2011 um 00:07 schrieb Alexander Reichstadt: Thanks much. I ended up subclassing an NSView to draw the required things, subclassed another view to be the containing superview and hold controls, and override in the containing view the addSubview method to always have it call super

Re: How to draw over a control in an NSView

2011-10-31 Thread Alexander Reichstadt
I found the source of the problem. The hitTest looked at the wrong view for subviews. What was misleading me was that still textfields reacted correctly while textviews did not. Alex Am 31.10.2011 um 10:44 schrieb Alexander Reichstadt: There remains an issue. NSTextViews underneath

How to draw over a control in an NSView

2011-10-30 Thread Alexander Reichstadt
Hi, given a custom NSView using drawRect to draw, say, a blue rectangle, controls inside that view are always in front of the blue rectangle. Is there a way to draw above controls with drawRect? Also putting a view with controls inside another view that draw in drawRect doesn't change that.

Re: How to draw over a control in an NSView

2011-10-30 Thread Alexander Reichstadt
the view is always added on top of all others. In the given scenario the containing superview dynamically loads subviews anyway, so overriding addSubview seems to be the easiest path. Alex Am 30.10.2011 um 22:06 schrieb Jens Alfke: On Oct 30, 2011, at 12:46 PM, Alexander Reichstadt wrote

PDFKit reference count underflow with garbage collection

2011-10-14 Thread Alexander Reichstadt
Hi, generating a PDF throws malloc: reference count underflow I have garbage collection turned on. The issue occurs here: returnData = [fullDoc dataRepresentation]; fullDoc is a PDFDocument. Thanks for any help Alex ___ Cocoa-dev mailing

Re: PDFKit reference count underflow with garbage collection

2011-10-14 Thread Alexander Reichstadt
Found b.bum's post at http://www.cocoabuilder.com/archive/cocoa/240877-reference-count-underflow-when-writing-pdf.html Thanks Am 14.10.2011 um 11:57 schrieb Alexander Reichstadt: Hi, generating a PDF throws malloc: reference count underflow I have garbage collection turned

PrintOperation reappears when cancelled

2011-10-13 Thread Alexander Reichstadt
Hi, in our project we have a print operation to print from a view drawn offline. This all works fine. But if the operation is cancelled in the printdialog and document window closed, another document window selected and then ordered to print, the print dialog shows up twice. Once for the

[Solved] Re: PrintOperation reappears when cancelled

2011-10-13 Thread Alexander Reichstadt
[op cleanUp]; Thanks Am 13.10.2011 um 11:48 schrieb Alexander Reichstadt: Hi, in our project we have a print operation to print from a view drawn offline. This all works fine. But if the operation is cancelled in the printdialog and document window closed, another document window

[unsolved] Re: PrintOperation reappears when cancelled

2011-10-13 Thread Alexander Reichstadt
Alexander Reichstadt: [op cleanUp]; that should have been cleanUpOperation Thanks Am 13.10.2011 um 11:48 schrieb Alexander Reichstadt: Hi, in our project we have a print operation to print from a view drawn offline. This all works fine. But if the operation is cancelled in the printdialog

Re: Window closes on its own

2011-09-06 Thread Alexander Reichstadt
No, I haven't retained it explicitly. Thanks, makes sense. Am 06.09.2011 um 11:23 schrieb jonat...@mugginsoft.com: On 5 Sep 2011, at 21:25, Alexander Reichstadt wrote: I can't due to using the garbage collection. Am 05.09.2011 um 20:47 schrieb Jens Alfke: On Sep 5, 2011, at 12:08

Window closes on its own

2011-09-05 Thread Alexander Reichstadt
Hi, the window created through the following code closes on its own after one second. Why? PWSuggestionsWindowController *newCon = [[PWSuggestionsWindowController alloc] initWithWindowNibName:@PWSuggestionsView]; [[newCon window] makeKeyAndOrderFront:self]; And the subclass of window:

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I added canBecomeKey, now it stays open. Has this been changed after 10.4? Am 05.09.2011 um 09:08 schrieb Alexander Reichstadt: Hi, the window created through the following code closes on its own after one second. Why? PWSuggestionsWindowController *newCon

Re: Window closes on its own

2011-09-05 Thread Alexander Reichstadt
I can't due to using the garbage collection. Am 05.09.2011 um 20:47 schrieb Jens Alfke: On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote: the window created through the following code closes on its own after one second. Why? I’m guessing there’s an extra -release call

Re: Representation of strings with special chars

2011-08-25 Thread Alexander Reichstadt
Hi, Thank you for your many responses. const char *cstr = [s UTF8String]; mysql_stmt_prepare(myStatement, cstr, strlen(cstr)); This fixed the bug. Alexander Am 24.08.2011 um 22:37 schrieb Greg Parker: On Aug 24, 2011, at 1:24 PM, Alexander Reichstadt wrote: Actually it's

Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
Hi, we have a phenomenon, that is not quite clear. This is with 10.6.7 Xcode 4.0. NSArray *test = [NSArray arrayWithObject:@ÜÄÖüäö]; NSLog(@%@,test); NSLog(@%@,[test objectAtIndex:0]); This prints out the following: 2011-08-24 20:03:19.129 PetWorkX[15717:903] (

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
there it goes on to int STDCALL mysql_stmt_prepare(MYSQL_STMT *stmt, const char *query, unsigned long length); and at this point it fails. Am 24.08.2011 um 20:15 schrieb Sean McBride: On Wed, 24 Aug 2011 20:07:40 +0200, Alexander Reichstadt said

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
, not only a single character. But skipping over somewordAÜsomeotherwordB will not bring the cursor from before the s to after the d, but instead hop from s to after A to after Ü to after B. Am 24.08.2011 um 22:24 schrieb Alexander Reichstadt: Actually it's a couple of wrapper-classes

Linebreaks ignored in custom cell

2011-07-08 Thread Alexander Reichstadt
Hi, my cell doesn't display newline chars. It returns YES in the wraps-override. I tried all newline chars including the unicode one. Nothing shows. Please, can someone help? Thanks - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { snip [style

Re: Linebreaks ignored in custom cell

2011-07-08 Thread Alexander Reichstadt
Never mindDoh. Am 08.07.2011 um 15:00 schrieb Alexander Reichstadt: ___ 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

Re: Dynamically loading NIB files with a common stem

2011-07-06 Thread Alexander Reichstadt
Try: NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@nib inDirectory:@.]; for (id thisOne in sometest){ NSLog(@This is a path:%@,thisOne); } Am 06.07.2011 um 14:04 schrieb Vincent Habchi: Hi there, I'm, as we say in French, tearing my hair away with this little

Re: NSTextFieldDelegate issues

2011-06-17 Thread Alexander Reichstadt
Try controlTextDidChange Am 17.06.2011 um 16:11 schrieb JAMES ROGERS: I have an app with six (6) text fields. I need to know when the text in any of the text fields has changed so I can process them as a group. AppDelegate .h @interface WK2CFGMacAppDelegate : NSObject

How to remove the NSCell border in an NSTableView that hasFocus

2011-06-16 Thread Alexander Reichstadt
Hi, i have an NSCell subclass in an NSTableView. It's highlight color should be consistent regardless of the table view's focus state. It works, but I have one thing remaining I can't figure Out. While the table view has no focus the cells look fine. But when it has focus the cell gets a

visibleRect returns bogus results, why?

2011-06-11 Thread Alexander Reichstadt
Hi, I have a view with view controller. The controller receives scroll changes. visibleRect returns bogus, so I tracked it with NSLog and confirmed this. I use this code: NSRect theRect = [[self view] visibleRect]; NSLog(@%@,NSStringFromRect(theRect)); When I scroll using the scrollwheel

Solved: visibleRect returns bogus results, why?

2011-06-11 Thread Alexander Reichstadt
Never mind, what works reliably is: NSRect theRect = [[[self view] enclosingScrollView] visibleRect]; Am 11.06.2011 um 14:39 schrieb Alexander Reichstadt: Hi, I have a view with view controller. The controller receives scroll changes. visibleRect returns bogus, so I tracked

Re: Solved: visibleRect returns bogus results, why?

2011-06-11 Thread Alexander Reichstadt
rowsInRect for tableview doesn't work neither and returns also useless results. Stupid. Is this normal and a known bug, or am I missing something? Am 11.06.2011 um 14:49 schrieb Alexander Reichstadt: Never mind, what works reliably is: NSRect theRect = [[[self view] enclosingScrollView

Close: Solved: visibleRect returns bogus results, why?

2011-06-11 Thread Alexander Reichstadt
My bad, I made an NSInteger into an NSUInteger the wrong way hence returning an amount of rows for an NSTableview that was incorrect, so the tableview really grew to that size. Am 11.06.2011 um 15:03 schrieb Alexander Reichstadt: No, it's not solved. This works, because it always gives me

Retain Count of NSConnection object

2010-01-04 Thread Alexander Reichstadt
Hi and happy new year, I have a server and a client app using NSConnection. All seems to work fine. The client is doing something like [(NSDistantObject *)aServer doThis] while the server object has a method - (oneway void)doThis { NSLog(@do something); } After calling this method,

NSArrayController, only refreshes after mouse moves random key

2009-02-26 Thread Alexander Reichstadt
Hi, I try to change a string from the default value to a specific value when a new object is inserted. I observe the NSArrayController that in turn is bound to a table view. It has been impossible so far to get the value to reliably be changed upon insertion every time. I am observing

Re: NSArrayController, only refreshes after mouse moves random key

2009-02-26 Thread Alexander Reichstadt
On 26.02.2009, at 12:30, Alexander Reichstadt wrote: Hi, I try to change a string from the default value to a specific value when a new object is inserted. I observe the NSArrayController that in turn is bound to a table view. Correction, I observe the managedObjectContext

NSArrayController empty after changing entityName

2009-02-19 Thread Alexander Reichstadt
Hi, I want to dynamically change the entity an arraycontroller is using depending on a selection in the UI. When I do I either end up with undefinedkeys because the remaining items from previous entity hang around, or if I explicitly say setContent:nil it only works once, after that it

Re: runModalForWindow, best solution to modal session

2009-01-21 Thread Alexander Reichstadt
Hi Ken, On 17.01.2009, at 17:51, Ken Thomases wrote: On Jan 16, 2009, at 2:06 AM, Alexander Reichstadt wrote: @implementation KSingleItemSelectorController #pragma mark - #pragma mark Init+Dealloc + (id)selectItemUsingFenstertyp:(NSString *)aFenstertyp withComposition:(NSString

modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Hi, I have a phenomenon I am exploiting but unless I know for sure why it works must stop to use. The objective is to make sure that while the mousebuttons is being pressed no other modifier key is pressed, if anything is pressed the whole method return. Testing for 256 seems to work,

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
are pressed. I haven't found it in the docs anywhere, but I believe that you can count on 256 meaning no flags. Every machine I've tested this on (I've done a bunch of CGEvent stuff recently) seems to agree. Dave On Jan 16, 2009, at 2:08 PM, Alexander Reichstadt wrote: Hi, I have

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-16 Thread Alexander Reichstadt
Thanks for all the input, makes sense. Alex On 16.01.2009, at 23:29, Shawn Erickson wrote: On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256 means that no other modifiers are pressed. I haven't found it in the docs anywhere,

runModalForWindow, best solution to modal session

2009-01-13 Thread Alexander Reichstadt
Hi, in my app I call runModalForWindow: in a class method initializer -- the class is a NSWindowController subclass-- from a controller of a sheet. Please, disregard UI Guidelines, it's a highly customized app and this approach used as per specific request. + (id)selectItem {

Re: runModalForWindow, best solution to modal session

2009-01-13 Thread Alexander Reichstadt
Hi Keary, On 13.01.2009, at 19:44, Keary Suska wrote: On Jan 13, 2009, at 10:44 AM, Alexander Reichstadt wrote: Hi, in my app I call runModalForWindow: in a class method initializer -- the class is a NSWindowController subclass-- from a controller of a sheet. Please, disregard UI

Re: AddressBook Framework, adding multiple records

2008-12-12 Thread Alexander Reichstadt
as soon as I iterate through a bunch of ABRecords and make changes to them. In the docu it says notifications require for sharedAddressBook to be called once, which I do, the rest uses addressBook. Any pointers would be helpful. Regards Alexander Am 11.12.2008 um 09:17 schrieb Alexander

AddressBook Framework, adding multiple records

2008-12-11 Thread Alexander Reichstadt
Hi, using the AddressBook framework to add new records causes a console log saying that there is already one instance running of AddressBookSync. The entries I am adding do get added though and they look ok. Is there some way to avoid this or is this a bug? This is on 10.5.x Thank you.

NSTableView text color of cells in highlighted rows unreadable

2008-11-11 Thread Alexander Reichstadt
Hi, I am trying to turn off the highlight color. I subclassed NSTableView and NSTextAttachmentCell. In my tv-subclass I override - (void)highlightSelectionInClipRect:(NSRect)theClipRect and use clearColor to draw the selected rows which works. But I haven't found the way to draw the text

Re: Cannot change menu state in NSSearchField menu for more than once

2008-11-02 Thread Alexander Reichstadt
, but somehow I end up with two at runtime. Any pointers would be of much help. Thanks On 03.11.2008, at 08:31, Alexander Reichstadt wrote: Hi, when trrying to change the tickmark next to a menu of an NSSearchField it works exactly once, after that it doesn't work any more. I have to relaunch

Re: launchd daemon Throttling respawn log messages

2008-06-12 Thread Alexander Reichstadt
Jun '08, at 12:05 AM, Alexander Reichstadt wrote: launchd gives me a hard time with a daemon I need to keep running. It prints Throttling respawn to my console forever. Because of that I wrote a script that does nothing but print test and sleep before exiting to somehow understand why launchd

App fails to kill NSTask processes

2008-04-15 Thread Alexander Reichstadt
. Only when I quit the app, it being the ppid of all the dead processes, does it take the dead processes with it. How can I kill those processes in Leopard? Regards Alexander Reichstadt [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature

Re: App fails to kill NSTask processes

2008-04-15 Thread Alexander Reichstadt
Thanks, had found wait(0) to work along with changing from thread to timer in some cases. The zombies are gone now. On Apr 15, 2008, at 5:23 PM, Scott Ribe wrote: Whether I waitUntilExit or not makes no difference Try waitpid after killing the process. -- Scott Ribe [EMAIL PROTECTED]