Sorry, sent to wrong list. Please ignore prior post.
-- GG
___
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)lists.apple.com
On Oct 5, 2009, at 7:00 PM, enki1...@gmail.com wrote:
I am doing a simple query search for a text string pattern (ie 'SELF
like foo') on ~10 million small records stored persistently using
sqlite. This is a performance test to make sure I get reasonable
performance from my database engine
Hi,
I have a problem with rotation. I have one root controller which switch
between two views. In one of these views I have a webview control. In
webview I show a tif or pdf file which size is bigger than window, so
webview added scroll. The problem is when I rotate a device to
landscape, I
On 6 Oct 2009, at 05:00, Dragos Ionel wrote:
I have the following scenario:
A UIViewController, called BookViewController represents a book.
Another UIViewController, ChapterViewController, represents a
chapter in the
book.
BookViewController initializes and displays one
Mario,
On Oct 5, 2009, at 4:44 PM, Mario Kušnjer wrote:
Hello to the list !
Request for help regarding a little problem.
So I have this piece of code:
- (IBAction)addNewItem:(id)sender
{
if ([lsOutlineView selectedRow] 0)
{
[sourceListLevelZero
You're aware, I hope, that self release is illegal in several southern states?
M
___
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
Figured I'd address all the comments inline in one batch, and then
point out what I came up with. An almost viable solution is up top for
reference purposes, and a seemingly better one is towards the bottom.
Hm, do operations using primitive accessors also get registered on the undo
stack? If
Hi all !
Thanks for your replies everybody !
I have reviewed my code according to yours inputs and I found where
the problem was.
Here's the reviewed code:
if ([lsOutlineView selectedRow] 0)
{
Parent *parent = [Parent new]; --- create new Parent
object
Hello,
I’m attempting to add temporary attributes (all of which do not require layout)
to text as soon as it has been edited if it has a custom attribute applied
(much how the text system automatically applies linkTextAttributes to any text
with an NSLinkAttributeName attribute - although from
On Oct 5, 2009, at 3:12 PM, Keith Blount wrote:
I tried saving the edited range of text in the text storage and then
having my layout manager check this from:
-textStorage:edited:range:changeInLength:invalidatedRange:
Then my layout manager adds temp attribs in this method. Turns out
that
Again me !
Just a little update !
I packed previous code in combined message calls.
Here's how it looks now:
if ([lsOutlineView selectedRow] 0)
{
Parent *parent = [Parent new]; --- create new Parent
object
[sourceListLevelZero addObject:parent]; --- add
Hi.
I am trying to trigger a method when A Core Data property is changed, e.g A
Text Fields Text in a Table (connected to Core Data) is changed. I have looked
into Key Value Observing but haven't had much luck.
Cheers.
___
Cocoa-dev mailing list
Thanks a lot Jens,
Appologies, I thought I did post it on a different list.
regards,
Albert
On Oct 6, 2009, at 7:46 AM, Jens Alfke wrote:
On Oct 6, 2009, at 7:39 AM, albert jordan Mobility wrote:
I just upgraded to Snow Leopard and Xcode 3.2, and I'm having a
number of problems.
You
Does Leopard provide a means for controlling whether an application
launches in 32-bit or 64-bit? Snow Leopard has the new NSWorkspace
method launchApplicationAtURL:options:configuration:error:
But I can't find an equivalent method that works for OS X 10.5. How
did XCode do it?
-- john
On 10/6/09 10:36 AM, John Horigan said:
Does Leopard provide a means for controlling whether an application
launches in 32-bit or 64-bit? Snow Leopard has the new NSWorkspace
method launchApplicationAtURL:options:configuration:error:
See 'man arch' for one way.
--
Josh,
depending on where you need to get a notification:
a) within the same NSManagedObject or a relationship:
On Oct 6, 2009, at 10:52 AM, Michael Grant wrote:
You're aware, I hope, that self release is illegal in several
southern states?
See #8: http://www.sticksoftware.com/developer/cocoajoke.html.
--Andy
___
Cocoa-dev mailing list
Hi All,
I am using NSSecureTextField for entering the password.
Is there any way by which i can make the SecureTextCell to display
instead of default solid circle bullets?
Thanks
Arun
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
Hi everyone,
I am currently reading through Learn Objective-C on the Mac (M
Dalrymple S Knaster). While working through the provided examples, I
want to back up what I am learning by attempting to put into practice
what is being demonstrated to me.
To this end, I would like to post some
On Oct 6, 2009, at 2:26 PM, Mick Walker wrote:
#import Cocoa/Cocoa.h
@interface Easter : NSObject {
int Year;
int year;
}
- (id) init;
- (void) setYear: (int) year;
@property int year;
- (void) CalculateYear;
- (void) calculateYear;
@end
--- Easter.m ---
#import Easter.h
On Oct 6, 2009, at 2:26 PM, Mick Walker wrote:
Hi everyone,
I am currently reading through Learn Objective-C on the Mac (M
Dalrymple S Knaster). While working through the provided examples,
I want to back up what I am learning by attempting to put into
practice what is being
In addition to Bill's comments, which covered most things I think...
On 6 Oct 2009, at 22:26, Mick Walker wrote:
int g = Year % 19;
int c = Year / 100;
int h = h = (c - (int)(c / 4) - (int)((8 * c + 13) / 25) + 19 * g
+ 15) % 30;
int i = h - (int)(h / 28) * (1 - (int)(h / 28) *
On 6 Oct 2009, at 19:24, Arun wrote:
I am using NSSecureTextField for entering the password.
Is there any way by which i can make the SecureTextCell to display
instead of default solid circle bullets?
And thereby make your application inconsistent with the platform?
Why would you want
Hi Dave,
Thank you for you're reply.
One question: If I was to create an initializer such as the one you
suggested. Would I still need the if(self =([super init]))... in the
initializer?
Regards.
On 6 Oct 2009, at 22:43, Dave Carrigan wrote:
On Oct 6, 2009, at 2:26 PM, Mick Walker
On Oct 6, 2009, at 3:08 PM, Mick Walker wrote:
One question: If I was to create an initializer such as the one you
suggested. Would I still need the if(self =([super init]))... in the
initializer?
Yes.
___
Cocoa-dev mailing list
On Tue, Oct 6, 2009 at 3:08 PM, Mick Walker mick.wal...@me.com wrote:
One question: If I was to create an initializer such as the one you
suggested. Would I still need the if(self =([super init]))... in the
initializer?
You *always* need to call super's initializer, check its return value,
and
On Oct 6, 2009, at 1:29 AM, Jens Alfke wrote:
On Oct 5, 2009, at 3:12 PM, Iceberg-Dev wrote:
Is it the intended behavior that resizing an Alert Sheet in Mac OS
X 10.5.8 on a MacBook Pro produces a lot of blinking?
I have a custom alert sheet that can be resized and when I resize
it on a
i need to disable opening any files via the Open Recent menu items
until the user has specified some information that i save in my app's
prefs. this situation can occur if the user has deliberately or
accidentally deleted the prefs. now, i can (and do) override
-[NSDocumentController
On Oct 6, 2009, at 3:29 PM, Iceberg-Dev wrote:
The contents. It's a bit as if there was a patchwork of rectangles
and a random set of these rectangles would not be redrawn when the
window size increases by 1 pixel and then another set for the
following pixel.
That sounds like a graphics
Hi,
I'm coming across the odd instance where the use of a class variable
would seem to make sense.
I can do this with a static definition in the class implementation
file, I suppose.
Question is: is this particularly frowned upon in the Cocoa world? If
so, why?
Thanks,
--colin
The canonical implementation of a singleton class uses a static to
hold the singleton instance. There are other examples in Apple sample
code of using class statics. So, I would say that it's not frowned
upon as long as there's a good reason to do it.
Luke
On Oct 6, 2009, at 4:48 PM,
On Oct 6, 2009, at 4:48 PM, Colin Howarth wrote:
I'm coming across the odd instance where the use of a class variable would
seem to make sense.
I can do this with a static definition in the class implementation file, I
suppose.
Question is: is this particularly frowned upon in the
On 7 Oct, 2009, at 01:53, Bill Bumgarner wrote:
On Oct 6, 2009, at 4:48 PM, Colin Howarth wrote:
I'm coming across the odd instance where the use of a class
variable would seem to make sense.
I can do this with a static definition in the class implementation
file, I suppose.
Question is:
And it is maddening because the error occurs outside my code. My
document class implements
- (NSFileWrapper *)fileWrapperOfType:(NSString *)aType error:
(NSError**)errPtr
and this gets called fine. It returns a new NSFileWrapper. It has
been working perfectly since Tiger (this app
Hi all,
I'm getting a crash report from one user who has experienced the
following crash more than once. No other user is reporting this so
far. The crash is down in the text editing engine and I'm not sure
what I should be looking at in my usage of this code that could be
causing it.
On 07/10/2009, at 11:23 AM, Eagle Offshore wrote:
where fileWrappers is an NSMutableDictionary of filename-NSData's.
But that's not what the documentation says you should pass. The
dictionary should contain other NSFileWrappers keyed by their
preferred filenames, not NSData. That you
On Tue, Oct 6, 2009 at 5:37 PM, Graham Cox graham@bigpond.com wrote:
6 com.apple.AppKit 0x94b6bd62 -[NSLayoutManager
textStorage:edited:range:changeInLength:invalidatedRange:] + 445
This is a hint.
[[m_textEditViewRef textStorage]
On 07/10/2009, at 11:49 AM, Kyle Sluder wrote:
You haven't wrapped this in -[NSTextView
shouldChangeTextInRange:replacementString:] and -[NSTextView
didChangeText].
Aha! Thanks - can you point me to the relevant documentation on that?
I was working on the principle that methods like this
On Tue, Oct 6, 2009 at 5:53 PM, Graham Cox graham@bigpond.com wrote:
Aha! Thanks - can you point me to the relevant documentation on that? I was
working on the principle that methods like this were high level and were
managing that before-and-after notification/setup stuff for me.
First
Thanks Kyle - that's really helpful.
I hadn't read the subclassing notes because I'm not subclassing. My
model stores attributed strings (pity there's not a -
setAttributedString: method on NSTextView that would deal with all the
kinks necessary). I'd also missed the discussion on this
Hello list-
Here is part of my app:
@interface ModeQuizDoc : NSDocument
{
QuizResults *quizResults;
}
@implementation ModeQuizDoc
- (id)init
{
self = [super init];
if (self) {
quizResults = [[[QuizResults alloc] init] retain];
}
}
@interface QuizResults :
On Oct 6, 2009, at 6:14 PM, Graham Cox wrote:
Thanks Kyle - that's really helpful.
I hadn't read the subclassing notes because I'm not subclassing. My model
stores attributed strings (pity there's not a -setAttributedString: method on
NSTextView that would deal with all the kinks
On 07/10/2009, at 1:29 PM, David Hirsch wrote:
@interface ModeQuizDoc : NSDocument
{
QuizResults *quizResults;
}
@implementation ModeQuizDoc
- (id)init
{
self = [super init];
if (self) {
quizResults = [[[QuizResults alloc] init] retain];
You don't need to retain here.
On Oct 6, 2009, at 7:56 PM, Graham Cox wrote:
In Interface Builder, I would like to bind a text field to the
current score. When I set up the text field value's binding to
File's Owner.quizResults.currentScore, the app crashes inside
loadNib (inside NSPopAutoreleasePool). Is that
On 07/10/2009, at 1:54 PM, Adam R. Maxwell wrote:
I think it's worth noting that Apple's code examples don't do this:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TextArchitecture/Tasks/SimpleTasks.html
The way I read the page Kyle linked to
what about using a digital signature ? the current PDF standards and
even ODF standards support a digital signature
that would ensure the file hasnt been tampered with since it was
signed. Though i guess you could create a garbage PDF and sign it if
you wanted.
Best Regards,
Michele
On Tue, Oct 6, 2009 at 7:54 PM, Adam R. Maxwell amaxw...@mac.com wrote:
If this is really necessary, hopefully it'll be documented, or one of the
text system guys can step in and clarify...I'd really like to know since I've
been doing this for years without calling
On 07/10/2009, at 2:12 PM, David Hirsch wrote:
I would strongly recommend a property accessor for it instead of
relying on accessing the ivar directly.
But I can't bind through an accessor, can I? I'm supposed to be
able to bind to the ivar, I think.
You bind to properties, not to
Hello,
Thanks for the response. Seems that its straying somewhat from my
original question.
Searching based on prefix matching is fine. The predicate I'm using
really is of the form SELF like foo, no wildcard, so it doesn't seem
that it should be that expensive. You say its possible to
Okay, I'm an idiot. I did have accessors, but the getter returned
the wrong type. (An early version of the quizResults ivar was an
NSArray, and I neglected to fix the return type of the getter). Sorry
for wasting your time! Hopefully somebody will read this in the
archives and find
On Oct 6, 2009, at 8:21 PM, Kyle Sluder wrote:
On Tue, Oct 6, 2009 at 7:54 PM, Adam R. Maxwell amaxw...@mac.com wrote:
If this is really necessary, hopefully it'll be documented, or one of the
text system guys can step in and clarify...I'd really like to know since
I've been doing this for
On Oct 6, 2009, at 8:46 PM, Adam R. Maxwell wrote:
However, if I have a master-detail view with a non-editable textview, or am
updating a text view with live output from an NSTask, I don't care if the
delegate gets notified of changes (so have never seen a reason to call
On Oct 6, 2009, at 1:08 AM, Ben Trumbull wrote:
Core Data is just passing the query off to the database. I'm not
sure why you think going to the database directly will do anything
for the 179.9 / 180.0 seconds it takes to evaluate the query in the
database.
I suspect that he wants a
I recently got a MacBook Pro running Mac OS X 10.6.1 and Xcode 3.2
When I tried to build a project I was working on, I would get an error
like this:
warning: class 'MyClass' does not implement the 'NSWindowDelegate'
protocol
I was able to eliminate the warning by doing this:
@interface
On Tue, Oct 6, 2009 at 8:46 PM, Adam R. Maxwell amaxw...@mac.com wrote:
That's a fair question; I don't have a good definition :). However, if I
have a master-detail view with a non-editable textview, or am updating a text
view with live output from an NSTask, I don't care if the delegate
Please read the 10.6 Foundation release notes, particularly the
section entitled Formal protocol adoption:
http://developer.apple.com/mac/library/releasenotes/Cocoa/Foundation.html
We compile dual-mode code using the following:
@interface Subclass : Superclass
#if MAC_OS_X_VERSION_MIN_REQUIRED =
On 07/10/2009, at 3:37 PM, Kyle Sluder wrote:
I can't imagine the
usefulness of replacing the contents of the text storage instead of
just swapping in the new one.
I do this because previously I was replacing the text storage and that
was causing a huge amount of upset for Undo, producing
57 matches
Mail list logo