I would tend to use a simpler pattern: make assign outlets on file's
owner for each top-level object, and release them in -dealloc.
This pattern is based on the tendency for nibs to be part of another
object. For example, think of NSWindowController or NSViewController.
Logically, the object
i would be surprised if it didn't support NSTouch. although you may have to
wait for 10.6.2:
http://www.macrumors.com/2009/10/20/magic-mouse-user-guide-suggests-mac-os-x-10-6-2-release-in-near-future/
On Wed, Oct 21, 2009 at 12:40 AM, Kyle Sluder kyle.slu...@gmail.com wrote:
Can anyone confirm
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
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
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
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
On Wed, Oct 21, 2009 at 12:02 AM, BareFeet list.develo...@tandb.com.au 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
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:
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
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
kind
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?
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
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
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
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 cycle
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
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
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
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
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
On Wed, Oct 21, 2009 at 9:23 AM, Joshua Garnham
joshua.garn...@yahoo.co.ukwrote:
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
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
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
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
ricklangschu...@me.com 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 mail...@ericgorr.net 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 mail...@ericgorr.net
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 --
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
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 noticeable
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
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
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 a...@freeport.de 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
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:error:, and I
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):
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]
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.
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
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
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
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
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
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 Quartz/Quartz.h
#import QuartzCore/CAAnimation.h
#import QuartzCore/CoreImage.h
...
{
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
m...@instantvoodoomagic.comwrote:
Hi,
I'd like to display a busy indicator view (HUD) regardless of whatever view
is
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
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 j...@mooseyard.com
To: Jim Kang jimk...@gmail.com
Cc: Joshua Garnham joshua.garn...@yahoo.co.uk; cocoa-dev@lists.apple.com
73 matches
Mail list logo