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 t

Re: Text drop into other text apps

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

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 m

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 : > > On 28 Apr 2014, at 6:53 pm, Alexander Reichstadt wrote: > >> Before wasting further time, are joints on Mac OS X SpriteKit a known issue >> at this time? > > > I don't know

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.x>bodyB.position.x){ bo

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.count>0){ [self.skView.scene removeAllChildren]; } else

Re: Random crashes

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

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 of

Re: Self contained command line tool

2012-10-14 Thread Alexander Holodny
LSUIElement=1 in Info.plist is hint for Launch Services to do not initialize user interface(i.e., Dock icon). On Oct 12, 2012, at 11:19 AM, Dave Keck wrote: > I would create a new Cocoa application using Xcode's template, delete all the > .m files (except main.m), and put your code in main.m. Y

Re: Embedding resources in Static Cocoa Library

2012-10-08 Thread Alexander Bokovikov
nst patching. This code sample is related to software protection area. Best regards, Alexander ___ 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-ad

Re: Embedding resources in Static Cocoa Library

2012-10-07 Thread Alexander Bokovikov
On Oct 7, 2012, at 1:00 AM, koko wrote: > I want to make a static cocoa library that is an NSTableView and allots data > is contained in the library. > I want images in the rows of the table. > Where would one get these images as their is no bundle where that can be > stored? > Or the question

Re: Embedding resources in Static Cocoa Library

2012-10-07 Thread Alexander Bokovikov
On Oct 7, 2012, at 1:00 AM, koko wrote: > I want to make a static cocoa library that is an NSTableView and allots data > is contained in the library. > I want images in the rows of the table. > Where would one get these images as their is no bundle where that can be > stored? > Or the question

Re: NSTextAttachment

2012-07-16 Thread Alexander Reichstadt
uperclasses? Am 16.07.2012 um 23:51 schrieb Jens Alfke: > > On Jul 16, 2012, at 2:15 PM, Alexander Reichstadt 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 NSTextAttachmen

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 pr

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 )cell atIndex:(NSUInteger)charIndex; { return [NSArr

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:

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 *)layoutManage

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 hun

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

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

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

Base64 encoding of NSImage

2012-07-01 Thread Alexander Hartner
I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it not suitable. Using REST / JSON seems like an easy option however NSDATA does not seem to be supported by the JSON Serialiser. The one remaining option I considered was to

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 be

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

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 K

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

2012-03-22 Thread Alexander Reichstadt
I have confirmed it and will be > committing 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. >> >> -(NSS

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

2012-03-22 Thread Alexander Reichstadt
return 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

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 chars

[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

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 dire

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

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 >

Re: How to tell Xcode to forget file

2012-02-08 Thread Alexander Reichstadt
Vyacheslav 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 >&

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 th

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 viewDidA

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 switchSearchbarInvi

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 actua

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 sho

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 leftBarButtonIte

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 tha

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

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
ttp://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 th

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
nd 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: >> &g

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

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 i

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
t;, "R\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 a écrit : > >> Yes, you are right,

Re: NSString looses Umlaute

2011-12-22 Thread Alexander Reichstadt
ens 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

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 = [the

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 reques

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

Files Drag&Drop - target file icon problems

2011-11-13 Thread Alexander Bokovikov
Hi, Everyone, In my Cocoa app, I use file saving by drag&drop into Finder window (Desktop is one particular case). I'm trying to do it just as docs tell me: I use namesOfPromisedFilesDroppedAtDestination message to create a list of files being saved (one file at least) then I create and w

Re: NSFileHandle readInBackground vs threading?

2011-11-13 Thread Alexander Bokovikov
On 09.11.2011, at 19:25, Scott Ribe wrote: I'm not arguing the OP isn't seeing data lost, just that it cannot be happening the way he thinks it is if he's using any normal networking calls. Thanks to everybody for your useful comments! My local socket is opened in the client process just a

Re: NSFileHandle readInBackground vs threading?

2011-11-08 Thread Alexander Bokovikov
On 09.11.2011, at 0:50, Scott Ribe wrote: On Nov 8, 2011, at 9:54 AM, Alexander Bokovikov wrote: I have a need to read some data from a local socket, which serves for IPC. And data may come very quickly, so (AFAIU) inner socket buffer might overflow, so a portion of data might be lost

NSFileHandle readInBackground vs threading?

2011-11-08 Thread Alexander Bokovikov
Hi, All, I have a need to read some data from a local socket, which serves for IPC. And data may come very quickly, so (AFAIU) inner socket buffer might overflow, so a portion of data might be lost. I don't see a way how to define an inner system buffer size, so the only I can is to do my

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 v

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

Re: How to draw over a control in an NSView

2011-10-31 Thread Alexander Reichstadt
Alex 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

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

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

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

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 li

[unsolved] Re: PrintOperation reappears when cancelled

2011-10-13 Thread Alexander Reichstadt
m 11:51 schrieb 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

[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

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 previo

AuthorizationServices - what is wrong here?

2011-10-07 Thread Alexander Bokovikov
Hi, All, Here is a piece of code where I'm trying to customize the password input box. Nevertheless I can see nothing but generic icon and default prompt text. The rights are assigned and my helper tool is working correctly. The problem is just in the interface customization. Could anybody tel

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 schr

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 guessin

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

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

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
ntire word, 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

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
ng". From 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, Alexand

Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
s they aren't. Any pointers would be greatly appreciated. Thank you and kind regards Alexander ___ 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-

Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Alexander Hartner
I am constructing a framework consisting of C++, ObjectiveC and ObjectiveC++ files. As part of the framework I have created a wrapper around NSLog so I can control and disable log messages centrally. I know there are better ways to do this, however right now I need to get this working and don't

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

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 { [style setAlignment:NSLeft

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

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

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 border

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

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

Re: Solved: visibleRect returns bogus results, why?

2011-06-11 Thread Alexander Reichstadt
esult 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]

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,

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

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: 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: No more .ibplugins in Xcode 4, so now what...?

2011-05-16 Thread Alexander Zvyagin
> Thanks for the clarification. But the developer still had to transition > _his code_ from non-GC to either 1) GC-only and drop 32 bit (likely not > desirable) or 2) dual mode. > I think most developers would have accepted a loss of _binary_ > compatibility of their ibplugins, after all the targ

No static functions with linking .a to .dylib

2011-05-13 Thread Alexander Zvyagin
Hello, all! Please help me to link compiled *.a modules to *.dylib library. Currently linked file has runtime errors with no static functions found from .a module by .dylib library: +[NSString stringStaticFunction]: unrecognized selector sent to class 0x12345678 +[NSString stringStaticFunction]

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

scaling a transformed view

2011-04-20 Thread Alexander Cohen
Hi, I've come upon a problem i can't seem to get my head around. I have a view that has a rotation transform on it and i need to be able to pull at one of it's corners and scale the view based on the amount pulled. I also need to keep the opposite corner of the pulled corner pinned to it's loca

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: NSImageView mouseUp problem?

2011-03-05 Thread Alexander Zvyagin
> What can I do to receive this -mouseUp event [losted by NSImageView] ? -mouseUp is coming only custom view is LOWER any existing NSImageView inside Interface Builder xib document (Mac OS X 10.6.6). I think this mean NSImageView doesn't send -mouseUp to next responder. Is this a bug? * Note

NSImageView mouseUp problem?

2011-03-05 Thread Alexander Zvyagin
Hi, All! I has a custom view must show the mouseEntered state and mousePressed state in different pictures. If mouse press is inside this view but mouse release is outside, my view doesn't receive -mouseUp event: --- cut --- >>> press is really there <<< // [-mouseDown] { 360 x 126} NSImageVi

Re: inter-process locks

2011-02-19 Thread Alexander Cohen
M, Michael Babin wrote: > On Feb 19, 2011, at 12:29 PM, Alexander Cohen wrote: > >> Is there anyway to do interprocess locks using cocoa ( like a Mutex in Win32 >> )? The best i've found is not cocoa and uses flock but the man pages say its >> advisory only which

  1   2   3   4   5   6   >