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
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
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
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){
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
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
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
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
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
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
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
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
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
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
:(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
\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
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
:
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
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
://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
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
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 =
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
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.
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
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
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
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.
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
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
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
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
[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
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
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
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:
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
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
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
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] (
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
, 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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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,
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
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,
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
{
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
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
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.
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
, 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
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
. 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
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]
88 matches
Mail list logo