Mike,
you need a view that has the size of the window to cover it
completely. Otherwise touches will go down the responder chain and
reach other views.
What happens while you show the spinner?
If you load data from the net show the UIApps spinner at the top.
atze
Am 21.10.2009 u
This seems like a common requirement, so I keep thinking I must be
missing something simple.
For an example of similar functionality, look at Disk Utility. The
user can navigate through a tree of nested disks and partition nodes
in the left view. The right view shows a tab view that changes
I am getting a beach balling in an application I am working on, I
would of investigated more but I have noticed that some other apps on
my computer seem to be doing the same thing.
If I move my applications window it free up the block allowing an
event to be processed), but the instantly fr
Hello
I'm trying to run a bonjour service in background because my eventque is somehow
blocked when I try to press any button on my mac-app.
It's blocking while I'm transferring some data from an iPhone to the mac via
bonjour and press some button in the front...
How can I run all the bonjour-s
On Wed, Oct 21, 2009 at 12:02 AM, BareFeet wrote:
> This seems like a common requirement, so I keep thinking I must be missing
> something simple.
Nope. You're going to need to write code. The "hardest" part is
replacing the tab view items; this really isn't that difficult:
// Typed in Mail
-
In general hiding bit of you interface depending on the state/
selection of you app is considered bad because it can confuse the
user, if you disable elements then you are tell the user that the
element is not available for the current state/selection etc., if you
you hide elements then the
Hi,
I have an ivar in AppController, a pointer to the class Volume.
When running info gc-roots on it before setting it nil, the results are:
(gdb) info gc-roots 0x2004f9340
Number of roots: 40
Root:
0 Kind: bytes rc: 1 Address: 0x000200543b40 Offset:
0x0008
1 Kind:
On Oct 21, 2009, at 01:39, Nick Rogers wrote:
When I set this ivar to nil. the results are:
(gdb) info gc-roots 0x2004f9340
Number of roots: 1
Root:
0 Kind: bytes rc: 1 Address: 0x000200543b40 Offset:
0x0008
1 Kind: object rc: 0 Address: 0x0002004f9340 Clas
Hello Steve, and thanks a lot. Your category is exactly what I needed. Although
I already figured out myself the use of
[NSApp runModalForWindow:] for blocking and the [NSApp:stopModal] to release
the block, I still enjoyed the way of doing this seamlessly via a category. In
my case I need 2 cat
I have a view controller I am loading and displaying - using an alpha fade.
However, the elements are all fading at different rates as the whole view
fades in/out. Is there a way to have all the elements fade together (in
Flash we can set an object to have a "layer" blending mode to do the same
kin
Thanks for the reply, Kyle.
[tabView removeTabViewItem:oldItem]
But isn't that going to destroy the tab item, the view it contains,
and everything in that view? Can I get it back when that tab view item
is valid again, or do I have to programmatically create all the objects?
Thanks,
On Oct 21, 2009, at 9:03 AM, BareFeet wrote:
[tabView removeTabViewItem:oldItem]
But isn't that going to destroy the tab item, the view it contains,
and everything in that view? Can I get it back when that tab view
item is valid again, or do I have to programmatically create all the
All this leads me to the paragraph about top-level objects under
garbage collection:
===
Mac OS X - garbage collected memory model
Most objects in the graph are kept in memory through strong references
between the objects. Only the top-level objects in the nib file do not
have strong refere
On 21 okt 2009, at 02.18, Quincey Morris wrote:
When I set this ivar to nil. the results are:
(gdb) info gc-roots 0x2004f9340
Number of roots: 1
Root:
0 Kind: bytes rc: 1 Address: 0x000200543b40 Offset:
0x0008
1 Kind: object rc: 0 Address: 0x0002004f9340 Cla
On Oct 21, 2009, at 7:45 AM, Fritz Anderson wrote:
> Does this mean that there's a race between the NIB loader's need to create a
> strong reference and the GC thread's imperative to collect the object before
> it is referenced?
No; the objects are strongly referenced by stack or by the de-ar
On Oct 21, 2009, at 1:39 AM, Nick Rogers wrote:
> (gdb) info gc-roots 0x2004f9340
> Number of roots: 1
> Root:
> 0 Kind: bytes rc: 1 Address: 0x000200543b40 Offset:
> 0x0008
> 1 Kind: object rc: 0 Address: 0x0002004f9340 Class: Volume
>
> Is there a retain cyc
No, there is no race. While the nib is being loaded, there are plenty
of references to the objects therein on the stack and in registers.
These references will keep these objects alive during loading.
If you don't keep a strong reference to these objects during loading
they will become garb
Hi,
I would like to detect whether the 'e' key is pressed every time I click on
an NSView. If the view is already the firstResponder, I can quite memorize
that key pressed when keyDown and reuse it when mouseDown. Then I erase it
when keyUp.
But if the user presses the 'e' key when the firstRespond
How would I send a Selector to another class?
I know to send it to a selector in the same file you do
[self performSelector:@selector(doSomething)];
and for sending it to another class I've tried
[otherClass performSelector:@selector(doSomethingElse)];
But I just get an error in the Debugger sa
On Oct 21, 2009, at 12:23 PM, Joshua Garnham wrote:
How would I send a Selector to another class?
I know to send it to a selector in the same file you do
[self performSelector:@selector(doSomething)];
and for sending it to another class I've tried
[otherClass performSelector:@selector(doSomethi
Hi,
Thanks for all the valuable replies.
I tried GC Monitor instrument and this Volume pointer, is referenced
by (apart from the AppController object) by just 32 bytes (non-object).
Extended detail description shows different non-related objects on
different runs.
The stack trace in every suc
On Wed, Oct 21, 2009 at 9:23 AM, Joshua Garnham
wrote:
> How would I send a Selector to another class?
> I know to send it to a selector in the same file you do
> [self performSelector:@selector(doSomething)];
>
Why not simply... [self doSomething] ?
> and for sending it to another class I've t
On Oct 21, 2009, at 09:17, gMail.com wrote:
I would like to detect whether the 'e' key is pressed every time I
click on
an NSView. If the view is already the firstResponder, I can quite
memorize
that key pressed when keyDown and reuse it when mouseDown. Then I
erase it
when keyUp.
But if t
Hi,
That was all that showed up in the debugger, but in the class otherClass there
is a method called doSomething.
I have also tried what you suggested - [otherClass doSomethingElse] - but i get
a warning in xcode, http://cld.ly/7c4la.
(JGManagedObject is what replaces otherClass)
Thanks.
_
On Oct 21, 2009, at 10:02, Shawn Erickson wrote:
But I just get an error in the Debugger saying
+[otherClass doSomethingElse]: unrecognized selector sent to class
0xe5c4
You are sending a message to an object that doesn't respond to that
message
(aka no implementation for it). The error
- Message from joshua.garn...@yahoo.co.uk -
but i get a warning in xcode, http://cld.ly/7c4la.
(JGManagedObject is what replaces otherClass)
That one is usually a case of not importing the JGManagedObject header
or not declaring the class method in that interface.
__
Hello everyone,
I am writing an application much like the sketch example. I want to
include an autosizing-like control found in Interface Builder. Does
anyone know if such control exists. I was thinking about NSImageView,
or NSBox to create such a control but neither seems to support what I
Hi All,
I have searched and can't find an answer to this. I am using
NSURLDownload in an internal application. I connect to a server and
download some files. Many times, the file name gets changed. I
download file.xslt but the download system turns it into
"file.xslt.xml" and then my app
On Wed, Oct 21, 2009 at 10:49 AM, Rick Langschultz
wrote:
> I am writing an application much like the sketch example. I want to include
> an autosizing-like control found in Interface Builder. Does anyone know if
> such control exists. I was thinking about NSImageView, or NSBox to create
> such a
Hi Marc.
Unfortunately, this is an Apple bug.
What Content-Type does the server return, and can you control that? If
so, then you can work around the bug by returning a custom Content-
Type that isn't recognized by other applications.
-Jeff
On Oct 21, 2009, at 1:17 PM, Marc Respass wrote:
Jeff,
Thanks for the response. That is not an acceptable solution for us. I
had already implemented one hack where I check for a .plist extension
because one of my users installed Yahoo Chat which took over plist
files that I was downloading and NSURLDownload was turning them
into .plist.
hi all,
I'm using the UINavigationBar tintColor property to modify the
color of navigation bars and that works fine except that the backItem
doesn't change color until it's touched (even if the touch doesn't
result in a tap) or I navigate back. Anyone have any suggestions on
what to 'po
On Oct 17, 2009, at 6:06 PM, Ross Carter wrote:
In 10.6, there is a spell checking dictionary named LocalDictionary
that contains words learned outside the context of a particular
language.
How does one use NSSpellChecker -learnWord: and -unlearnWord: so
that those methods write to LocalD
Sadly, this is a known bug. I can't seem to find the bug right now to
suggest a good work-around. You might have luck forcing the
navigationBar to layoutSubviews.
Luke
On Oct 21, 2009, at 12:18 PM, Bob Barnes wrote:
hi all,
I'm using the UINavigationBar tintColor property to modify the
I am sorry, I thought I had explained. Perhaps a little more detail is
required in my posting.
I am writing an application which can insert objects into a canvas.
The application has an inspector like Dashcode or Interface Builder.
Under the ruler view of Interface Builder 3.X there is an
On Oct 21, 2009, at 12:29 PM, Rick Langschultz wrote:
I am writing an application which can insert objects into a canvas.
The application has an inspector like Dashcode or Interface Builder.
Under the ruler view of Interface Builder 3.X there is an autosizing
control with "springs" that a
I've been making an application using webkit and it doesn't want to work with
SSL certificates.
I use cocoa and nothing happens, the url is just not navigated to; when i fire
up the carbon samples using webkit, "CarbonWeb", an alert is popped up saying
the certificate is bad; but, hey, it works
I'm writing a small application to get info from a mail server and
having lots of problems with reading from NSInputStream. After
initiating a connection (getStreamsToHost) I don't get an event that
the input stream has bytes available, if I check it, it returns NO but
if I go ahead and re
Thanks Jens,
If I implement a good working copy I will certainly put it into github
or an SVN repo so others can use it. Of course a pre-built view would
have been nice, I checked out the sproing example on the developer
sample code.
On Oct 21, 2009, at 2:57 PM, Jens Alfke wrote:
On Oc
On Oct 21, 2009, at 12:57 PM, Lemon Obrien wrote:
I've been making an application using webkit and it doesn't want to
work with SSL certificates.
I use cocoa and nothing happens, the url is just not navigated to
It sounds like you didn't implement the WebFrameLoadDelegate or
WebResourceLo
On Oct 21, 2009, at 1:04 PM, Ashley Perrien wrote:
After initiating a connection (getStreamsToHost) I don't get an
event that the input stream has bytes available, if I check it, it
returns NO but if I go ahead and read it anyway, I get the usual
banner.
It sounds like you didn't call -
Is there any useful documentation on what the behavior of
NSURLDownload is supposed to be w.r.t. file quarantine? I'm having a
hard time getting consistent behavior out of it. I have a program with
LSFileQuarantineEnabled turned on which downloads a file. The sequence
of events I see is:
On Oct 21, 2009, at 2:17 AM, Nathan Day wrote:
I am getting a beach balling in an application I am working on, I
would of investigated more but I have noticed that some other apps
on my computer seem to be doing the same thing.
If I move my applications window it free up the block allowing
On Oct 21, 2009, at 4:11 AM, Motti Shneor wrote:
Hello Steve, and thanks a lot. Your category is exactly what I
needed. Although I already figured out myself the use of
[NSApp runModalForWindow:] for blocking and the [NSApp:stopModal]
to release the block, I still enjoyed the way of doing thi
If, in the Appearance settings, I set my highlight color to blue and
then select an item in the finder, the blue color used is darker then
the color shown in the Appearance Settings.
Is there a NSColor method which will return this darker shade to me?
Is it alternateSelectedControlTextColor?
On 21-Oct-09, at 12:57 AM, Graham Cox wrote:
On 21/10/2009, at 3:43 PM, Ben Haller wrote:
There must be a good, clean way to do this. Anyone?
Well, the expected way is to have different types for your
documents. You can still map them all to the same class, and
discriminate in the -init
I searched around, and couldn't find anything about this...
I noticed that, whenever a service is handled by a non-
LSBackgroundOnly application in Snow Leopard, the private
NSServiceHandler class always calls -[NSApp
activateIgnoringOtherApps:] and makes the application activate.
How do I
On 21-Oct-09, at 6:55 PM, Ben Haller wrote:
OK, I've switched over to an NSDocumentController and using
different types for my different models. That turned out to be a
forced move, because NSApplication's delegate method -
applicationOpenUntitledFile: does not get called when the user
c
On Oct 21, 2009, at 15:55, Ben Haller wrote:
OK, I've switched over to an NSDocumentController and using
different types for my different models. That turned out to be a
forced move, because NSApplication's delegate method -
applicationOpenUntitledFile: does not get called when the user
On 22/10/2009, at 9:25 AM, Eric Gorr wrote:
If so, then it may not be appropriate for me to use
alternateSelectedControlTextColor (for example) - however, neither
selectedControlColor nor selectedTextBackgroundColor will return
this darker shade of
blue.__
After initiating a connection (getStreamsToHost) I don't get an
event that the input stream has bytes available, if I check it, it
returns NO but if I go ahead and read it anyway, I get the usual
banner.
It sounds like you didn't call -scheduleInRunLoop:forMode: ?
Covered. See below for f
On Oct 21, 2009, at 7:34 PM, Graham Cox wrote:
On 22/10/2009, at 9:25 AM, Eric Gorr wrote:
If so, then it may not be appropriate for me to use
alternateSelectedControlTextColor (for example) - however, neither
selectedControlColor nor selectedTextBackgroundColor will return
this darker
On Wed, Oct 21, 2009 at 4:51 PM, Eric Gorr wrote:
> Interesting. I've looked a little, but cannot seem to find this color
> picker. Anyone know where it can be found?
Google for "developer color picker" --> http://www.panic.com/~wade/picker/
--Kyle Sluder
On Oct 21, 2009, at 8:00 PM, Kyle Sluder wrote:
On Wed, Oct 21, 2009 at 4:51 PM, Eric Gorr
wrote:
Interesting. I've looked a little, but cannot seem to find this color
picker. Anyone know where it can be found?
Google for "developer color picker" --> http://www.panic.com/~wade/picker/
We
On 21 okt 2009, at 09.44, Nick Rogers wrote:
Here timer is an ivar in Volume of type NSTimer*. Is setting timer
in the above method causing the problem?
Timers retain (RC) / strongly reference (GC) their targets. In general
you should keep a reference to the timer so that you can invalida
On 10/16/09 2:17 AM, WareTo Development said:
>So we thought the best thing would be to force a garbage collection
>operation at a time of our choosing. Normally, this occurs at Mouse
>up, after the user has finished his drawing. A split second of garbage
>collection then would be barely noticeab
Ashley Perrien wrote:
uint8_t *readBuffer;
At this point, readBuffer is an uninitialized local variable.
NSUInteger bufferLength;
BOOL gotBuffer = [readStream getBuffer: &readBuffer length:
&bufferLength];
This use of readBuffer is safe, because it's passed by reference, and
the caller
There's a 'Developer' color list in the color list pane of the
standard color picker.
- Jon
On Oct 21, 2009, at 19:51 PM, Eric Gorr wrote:
On Oct 21, 2009, at 7:34 PM, Graham Cox wrote:
On 22/10/2009, at 9:25 AM, Eric Gorr wrote:
If so, then it may not be appropriate for me to use
alt
Hi
I have created a class with only class methods in it and a single static
instance variable allocated only one with a class method. Do I need to add a
-(void) dealloc: method to this class. Could someone kindly explain.
Thank you,
Tharindu Madushanka
tharindufit.wordpress.com
_
On 22/10/2009, at 10:26 AM, Jonathan Hendry wrote:
> There's a 'Developer' color list in the color list pane of the standard color
> picker.
Yes, and I believe this is the picker that Graham was referring to. It shows
all the NSColor named colors that reflect the current appearance. To see it
On Oct 21, 2009, at 6:41 PM, Tharindu Madushanka wrote:
I have created a class with only class methods in it and a single
static
instance variable allocated only one with a class method. Do I need
to add a
-(void) dealloc: method to this class. Could someone kindly explain.
No. You only n
On 21-Oct-09, at 7:23 PM, Quincey Morris wrote:
On Oct 21, 2009, at 15:55, Ben Haller wrote:
OK, I've switched over to an NSDocumentController and using
different types for my different models. That turned out to be a
forced move, because NSApplication's delegate method -
applicationOpenU
I figured it out.Yes. That's how it's done.
Thanks for reply!
Ric.
On Mon, Oct 19, 2009 at 1:17 AM, Alexander Spohr wrote:
> Frederick,
> just an idea - from UIView’s documentation:
>
> tag
> The receiver’s tag, an integer that you can use to identify view objects in
> your application.
> @pro
On Oct 21, 2009, at 6:38 PM, Ben Haller wrote:
> On 21-Oct-09, at 7:23 PM, Quincey Morris wrote:
>
>> On Oct 21, 2009, at 15:55, Ben Haller wrote:
>>
>>> Clicking cancel in my "choose a model" window returns a nil string to my
>>> NSDocumentController subclass -openUntitledDocumentAndDisplay:e
On 21-Oct-09, at 10:13 PM, Adam R. Maxwell wrote:
No. If you return nil and the caller passed in an NSError
reference, you need to return a valid NSError or at least set
*outError = nil. That should fix the crash you showed.
In addition, your code must check the return value of [self
ma
Really can't tell, because you're only posting isolated code
fragments, instead of complete and self-contained fragments that
show the entire context.
So here's the unadulterated method I'm trying to get working (not very
useful at this point but if I can get the reading right):
-(voi
On Oct 21, 2009, at 4:48 PM, Ashley Perrien wrote:
NSMutableData *returnMessage = [NSMutableData dataWithLength: 300];
[readStream read: [returnMessage mutableBytes] maxLength: 300];
NSMutableString *readData = [[[NSMutableString alloc]
initWithBytes: [returnMessage bytes] le
I would recommend everyone read the Interface Builder 3.2 Release Notes. These
highlight the new features in Interface Builder 3.2 on Snow Leopard, as well
some of the issues we've addressed.
I think these might clear up many of the confusions I've seen cropping up on
the mailing lists.
http:/
OK, the reason reading data doesn't work is because you aren't waiting
for the delegate calls to tell you that data is available; you're just
opening the stream and then immediately trying to read. It takes time
to open a socket and receive data over it.
You should really read the conceptua
On Oct 21, 2009, at 12:22 AM, co...@weblooks.ch wrote:
It's blocking while I'm transferring some data from an iPhone to the
mac via
bonjour and press some button in the front...
Bonjour doesn't transfer data. It's only for discovering what services
are available, not for connecting to the
Heyas,
I am quite new to Objective-C (and to some extend to OO concepts as
well), so please be gentle with me :)
I have a core data based document application that purpose is to
access a mysql database (i am using the MCP Kit).
The documents in my context are Views that contain different as
Hi All,
Not sure if this is the right place (I am sure someone will let me
know if it is not) I have a iPhone application that has a UITable
view that is backed by core data. I want to perform a reducing search
so that only the items starting with the characters entered into the
search b
I'd like to be able to type in text and drag readonly elements (tokens) into
a NSTokenField to create a custumizable string format. Like in Apple iWorks
Numers' customize cell format. The user can drag readonly NSTokenCells into
a NSTokenTextField (remaining NSRoundedTokenStyle) and type in plain t
Hej,
I tried to apply the following CIFilter to a pdfview, webview and/or a
simple view. I don't get any compiling errors, but it just nothing
happens. Am I missing a certain initialization part?
#import
#import
#import
...
{
NSArray *filters = nil;
CIFilter *filter = [CI
That selector is a unique index that points to a method of a specific class.
Methods themselves belong to a specific class and can't operate outside of
their classes. (They compile down to regular C functions that accept an
additional object parameter.)
So, it doesn't make sense to use one class's
Check out SFHudView by Buzz Andersen (
http://github.com/ldandersen/scifihifi-iphone/blob/master/UI/SFHFHUDView.h)
Saurabh
On Tue, Oct 20, 2009 at 5:26 PM, Mike Manzano
wrote:
> Hi,
>
> I'd like to display a busy indicator view (HUD) regardless of whatever view
> is currently at the top of the vi
On Oct 21, 2009, at 9:43 AM, Jim Kang wrote:
That selector is a unique index that points to a method of a
specific class.
No, that's not true of Objective-C (although it is of C++ method-
pointers.) A selector is, basically, just a unique string: it defines
a message, not a method, to use
I'd like to be able to type in text and drag readonly elements
(tokens) into a NSTokenField to create a custumizable string format.
Like in Apple iWorks Numers' customize cell format. The user can drag
readonly NSTokenCells into a NSTokenTextField (remaining
NSRoundedTokenStyle) and type in
Ah, I see. so I need to send it to an instance of the class not the class it
self.
How would I do that?
Thanks,
Josh.
From: Jens Alfke
To: Jim Kang
Cc: Joshua Garnham ; cocoa-dev@lists.apple.com
Sent: Thursday, 22 October, 2009 6:21:29
Subject: Re: Sending a
I'd like to do some event tracking that is similar to NSMenu's
"sticky" mode, that is, I'm tracking when the mouse *isn't* down until
the mouse *does* go down. This is working fine in my code except when
the user clicks outside my application, into another application's
window/finder etc. I
On 22/10/2009, at 3:52 PM, Joshua Garnham wrote:
> Ah, I see. so I need to send it to an instance of the class not the class it
> self.
> How would I do that?
With respect, please understand that your questions are akin to this:
Q. How do I start the car?
A. You turn the key.
Q. How do I driv
On Oct 21, 2009, at 18:38, Ben Haller wrote:
I don't understand why you think you can't invoke [super
openUntitledDocumentAndDisplay: displayDocument error: outError]
immediately after displaying your initial-state-choosing dialog.
Because of the need to pass a customized type string? In th
Hi all,
I'm profiling some code to find out where it's spending all its time.
The code is a threaded task that parses a file and turns what it finds
into a bunch of objects. Some of these files are pretty large,
generating 25,000+ objects.
Basically after fixing a few slow bits with a use
On Oct 22, 2009, at 12:32 AM, Graham Cox wrote:
My question is, is this a known slow spot?
Yes.
I've never noticed NSNotificationCentre being so slow before, and
can't think why it would be. And of course, what can I do to help
it? I've temporarily removed the addObserver call in the cod
On Oct 21, 2009, at 11:32 PM, Graham Cox wrote:
My question is, is this a known slow spot? I've never noticed
NSNotificationCentre being so slow before, and can't think why it
would be. And of course, what can I do to help it? I've temporarily
removed the addObserver call in the code and s
85 matches
Mail list logo