On 27 Oct 2008, at 3:47 pm, Michael Ash wrote:
As far as I know the conversion happens upon request, not upon
storage. In other words, the internal representation is of the type
you initially used to create the NSNumber. If you then request the
value through a method whose type doesn't match,
On 26 Oct 2008, at 17:37, Gregory Weston wrote:
Specifically, I'm looking for the opportunity to call
FSGetCatalogInfo on the mount point and then FSGetVolumeInfo on the
volume reference number I got back from the first call.
Greg
It look to me like registering for kEventClassVolume /
How can I bind a button title to a Boolean but have a custom title for each
state? For example, I have a BOOL isRunning, if YES, my button should read
Stop Running else Start Running.
I can't really do this with an alternate title since when the button is
pushed and temporarily held down, the
How can I bind a button title to a Boolean but have a custom title for each
state? For example, I have a BOOL isRunning, if YES, my button should read
Stop Running else Start Running.
I can't really do this with an alternate title since when the button is
pushed and temporarily held down,
The first meeting of CocoaHeads Amsterdam chapter will be this
Thursday - October 30th - from 7:00 - 9:00pm.
The meeting will be at the Sofa (http://www.madebysofa.com) office:
Hasebroekstraat 10-12
1053 CT, Amsterdam
Map:
On Oct 27, 2008, at 4:37 AM, [EMAIL PROTECTED] wrote:
On 26 Oct 2008, at 17:37, Gregory Weston wrote:
Specifically, I'm looking for the opportunity to call
FSGetCatalogInfo on the mount point and then FSGetVolumeInfo on
the volume reference number I got back from the first call.
Greg
On 27 Oct 2008, at 12:30, Gregory Weston wrote:
The documentation you attached included a caveat that the volume
reference number I'd receive isn't useful for anything except
comparison against cached data. Can't use FSGetVolumeInfo.
The assumption being that you already have a cache of
In my app I'd like to perform some background task without affecting
the responsiveness of the UI. To avoid multi-threading, I just
postpone the task to a moment when the user becomes and stays idle for
a certain time.
I call NSObject's performSelector: afterDelay: and then use
On 27 okt 2008, at 13.54, Oleg Krupnov wrote:
In my app I'd like to perform some background task without affecting
the responsiveness of the UI. To avoid multi-threading, I just
postpone the task to a moment when the user becomes and stays idle for
a certain time.
I call NSObject's
Hello,
is there a away to limit the number of rows to 1, so that IKImageBrowserView
scrolls only horizontal ?
Ralph
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
Hi Ralph,
Use setContentResizingMask: with NSViewWidthSizable so that the
IKImageBrowserView resizes its content horizontally when zooming/
resizing...
-- Thomas
On Oct 27, 2008, at 2:06 PM, Ralph Manns wrote:
Hello,
is there a away to limit the number of rows to 1, so that
Le 27 oct. 08 à 13:54, Oleg Krupnov a écrit :
In my app I'd like to perform some background task without affecting
the responsiveness of the UI. To avoid multi-threading, I just
postpone the task to a moment when the user becomes and stays idle for
a certain time.
Have you a good reason to
Yes, I'd really like to avoid multi-threading. There would be an
intense data exchange between the threads and the effort for
synchronization would be simply not justified for such a tiny feature.
Actually I did try multi-threading before I arrived to this solution,
and I have spent very long and
On Oct 27, 2008, at 9:31 AM, Francis Devereux wrote:
On 26 Oct 2008, at 16:37, Gregory Weston wrote:
Amusingly, when you register an unmount or eject approval function
with DiskArbitration, that function gets invoked *after*
NSWorkspace sends its didUnmount notification. How's that for a
On Oct 27, 2008, at 3:32 AM, Trygve Inda wrote:
How can I bind a button title to a Boolean but have a custom title
for each
state? For example, I have a BOOL isRunning, if YES, my button
should read
Stop Running else Start Running.
I can't really do this with an alternate title since when
Hello Thomas,
thanks you, works great.
The documentation says setContentResizingMask determines how the receiver
resize its content when zooming...
Thanks, Ralph.
2008/10/27 Thomas Goossens [EMAIL PROTECTED]
Hi Ralph,
Use setContentResizingMask: with NSViewWidthSizable so that the
i try to implemnet a self-delete app. first start the app. a copy of the
app is created in another direction.then,i start the copy of the app.the
copy run and disppear.
how i make the copy not disppear when start the copy.
___
Cocoa-dev mailing list
On Oct 27, 2008, at 8:42 AM, Gregory Weston wrote:
On Oct 27, 2008, at 9:31 AM, Francis Devereux wrote:
On 26 Oct 2008, at 16:37, Gregory Weston wrote:
Amusingly, when you register an unmount or eject approval function
with DiskArbitration, that function gets invoked *after*
NSWorkspace
I've been running a multithreaded application that listens for
messages from other threads within the same application. I've build a
number of applications that work in this way, and they've worked well.
However, I've recently been trying to write the CoreFoundation
equivalent of my existing
how to run single instance?
___
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
Help/Unsubscribe/Update your
On Tue, Oct 28, 2008 at 4:54 PM, han [EMAIL PROTECTED] wrote:
how to run single instance?
Double click
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
Lol !
On 27 Oct 2008, at 16:57, Jonathan del Strother wrote:
On Tue, Oct 28, 2008 at 4:54 PM, han [EMAIL PROTECTED]
wrote:
how to run single instance?
Double click
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Oct 26, 2008, at 3:29 PM, Graham Cox wrote:
Let's say I have a NS(Mutable)Dictionary and I'd like to make a very
simple editor for its keys and values. So I have a NSTableView with
two columns, key and value. The dictionary can contain any mix of
strings and numbers, and the numbers
Am 27.10.2008 um 03:20 Uhr schrieb john fogg:
And how do I do this with my main application delegate? I want to call
it from wherever I am.
That one is already stored by your NSApplication object:
[NSApp delegate]
NSApp is a predeclared global variable that holds the current
http://developer.apple.com/technotes/tn/tn1150.html
___
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 24, 2008, at 10:27 PM, Randall Meadows wrote:
On Oct 24, 2008, at 8:00 PM, Ken Ferry wrote:
Yes, -cacheDisplayInRect:toBitmapImageRep: is going to end up
calling drawRect:. It's not meant to be invoked _from_ drawRect:.
You can call that from another view, or from a controller,
On Oct 26, 2008, at 1:06 PM, DKJ wrote:
In the documentation, the foregroundColor property is defined like
this:
@property CGColorRef foregroundColor
There's no retain parameter.
Correct, however the property is implemented as if it was retain. This
is because the compiler will
On Oct 26, 2008, at 3:06 PM, Tommy Nordgren wrote:
A specific printer can be used ONLY by a special app.
Any printer that can be seen by Print Center can be used by all
applications by default. If you are a printer vendor, then you can do
additional things, but you will need to write to
Documentation for -[NSPersistentDocument managedObjectContext] states:
If a managed object context for the receiver does not exist, one is
created automatically. You override this method to customize the
creation of the persistence stack.
Well, the first sentence leaves me in a bit of
Howdy,
My goal is to create an upload dialog. Like most upload/download dialogs, I
am going to use a table view to display my information. Eventually I will
need to create my own custom NSCell in order to represent an item being
uploaded, so I can represent multiple pieces of information in one
On Oct 27, 2008, at 10:54 AM, Carmen Cerino Jr. wrote:
Howdy,
My goal is to create an upload dialog. Like most upload/download
dialogs, I
am going to use a table view to display my information. Eventually I
will
need to create my own custom NSCell in order to represent an item
being
On Oct 25, 2008, at 4:07 AM, Chris Idou wrote:
Has anyone found a way to make a row in the NSPredicateEditor to
have components taller than the standard height or a more
complicated arrangement of components, or are you pretty much
limited to one row of buttons, and text fields and
On Oct 27, 2008, at 11:28 AM, Peter Ammon wrote:
On Oct 25, 2008, at 4:07 AM, Chris Idou wrote:
Has anyone found a way to make a row in the NSPredicateEditor to
have components taller than the standard height or a more
complicated arrangement of components, or are you pretty much
I'm writing a Foundation tool and I need to run a NSTask in a
separate thread.
An NSTask is a different thing from a thread. Since NSTask provides
asynchronous notification of its death (and NSFileHandle provides
asynchronous methods for dealing with I/O), there should be no need to
On Oct 27, 2008, at 1:49 PM, Jerry Krinock wrote:
- (NSManagedObjectContext*)managedObjectContext {
if (![super managedObjectContext]) {
// Create a new MOC...
// Oops, sorry, this branch will never execute.
}
return [self managedObjectContext] ;
}
Won't this lead to
On 2008 Oct, 27, at 11:44, Andy Lee wrote:
- (NSManagedObjectContext*)managedObjectContext {
NSManagedObjectContext* moc = /* ... create your own MOC ... */;
[self setManagedObjectContext:moc];
return moc;
}
Or alternatively, if your intent is to use the inherited behavior
but do
Hi Jerry,
Scroll down…
On Oct 27, 2008, at 10:49 AM, Jerry Krinock wrote:
Documentation for -[NSPersistentDocument managedObjectContext] states:
If a managed object context for the receiver does not exist, one is
created automatically. You override this method to customize the
creation
It's been a while since I haven't had a chance to work on this but I've
finally got back onto it and I still haven't found a solution to get the
bezel border to be drawn properly. Subclassing any of the public methods
doesn't work as the closest I can get to the result I want is by overriding
On 2008 Oct, 28, at 8:10, han wrote:
i try to implemnet a self-delete app. first start the app. a copy of
the app is created in another direction.then,i start the copy of the
app.the copy run and disppear.
how i make the copy not disppear when start the copy.
You would write and launch
On Oct 27, 2008, at 3:12 PM, Jerry Krinock wrote:
On 2008 Oct, 27, at 11:44, Andy Lee wrote:
- (NSManagedObjectContext*)managedObjectContext {
NSManagedObjectContext* moc = /* ... create your own MOC ... */;
[self setManagedObjectContext:moc];
return moc;
}
Or alternatively, if your
On Oct 27, 2008, at 3:25 PM, Ron Lue-Sang wrote:
On Oct 27, 2008, at 10:49 AM, Jerry Krinock wrote:
So it seems like I need to instead use my own instance variable,
myMOC. Something like this should work:
- (NSManagedObjectContext*)managedObjectContext {
if (![self myMOC]) {
This code:
NSPredicate *aPredicate=nil;
@try
{
aPredicate=[NSPredicate predicateWithFormat:@invalid];
}
@catch(NSExcption *e)
{
NSLog(@Handled);
}
causes my exception handler delegate to be
I've been writing my own wrapper for the LSSharedFileList API to be able to
stick it in my Cocoa app. However I've found a few bugs.
One isn't that big of a deal, but I've filed a rdar for it anyway, and it's
that you can't actually set the Hide property. It just fails in odd ways.
The other one,
On Oct 27, 2008, at 12:40 PM, Andy Lee wrote:
On Oct 27, 2008, at 3:25 PM, Ron Lue-Sang wrote:
On Oct 27, 2008, at 10:49 AM, Jerry Krinock wrote:
So it seems like I need to instead use my own instance variable,
myMOC. Something like this should work:
-
The first thing to figure out here is why you even want to do this in the
first place. It's possible you have a legitimate reason, though more likely
is that you're using this as a solution for a problem that either may not
actually exist, or requires an entirely different kind of hammer to fix.
1. Confirmation clarification: do I understand correctly, considering
typical RDBMS data integrity rules, that for most to-one
relationships, I would set the delete rule to no action, since
deletion of the many item should not effect the one item?
2. How do I best implement custom UUIDs
On 2008 Oct, 27, at 12:32, Andy Lee wrote:
I don't see that instance variable. I only see a private
_managedObjectContext instance variable in the header, which you
wouldn't have access to anyway. Am I missing something?
Well, there NSPersistentDocument has -managedObjectContext and -
Dear Markus and others,
This is a problem that I have had with an application of mine,
iCalViewer, which displays a window on the desktop.
What happens is that you can find a window level which draws the
window under the desktop icons and over the desktop itself. However,
at that level,
Hi Steve,
Thanks for the reply.
Ouch, yes, you're right, it works perfectly with GC turned off, and
misbehaves with Required or Supported.
This will be a major bummer if there's no workaround (I guess it will
be bye-bye NSDrawer).
So the obvious next question: is there a work around, or
1. Confirmation clarification: do I understand correctly, considering
typical RDBMS data integrity rules, that for most to-one relationships, I
would set the delete rule to no action, since deletion of the many item
should not effect the one item?
Impossible to generalize, but generally -
Han,
You might find it beneficial to check out this website on how to get
answers. It doesn't just apply to cocoa-dev either, it's universally an
overall set of good ideas.
http://www.mikeash.com/getting_answers.html
Steven Degutis
http://www.degutis.org/
http://www.thoughtfultree.com/
On Tue,
Hi,
I have a particular problem that is buried deep in layers of logic.
Worse, it only happens on some systems, and only after they've been
running for a long time. I know it's extremely heavy handed, but I
want to know every single function call in my app that happens from
one point to
On 2008 Oct, 27, at 13:24, Steven Degutis wrote:
I've been writing my own wrapper for the LSSharedFileList API to be
able to
stick it in my Cocoa app. However I've found a few bugs.
One isn't that big of a deal, but I've filed a rdar for it anyway,
and it's
that you can't actually set the
if i call -[anObject performSelectorOnMainThread:aSelector
withObject:nil waitUntilDone:NO] and then later throw an exception
(of my own), which i catch, the deferred execution of aSelector never
happens. note that the performSelectonOnMainThread, and the throw and
catch are all in the same
On Oct 27, 2008, at 4:31 PM, Keary Suska wrote:
1. Confirmation clarification: do I understand correctly,
considering typical RDBMS data integrity rules, that for most to-one
relationships, I would set the delete rule to no action, since
deletion of the many item should not effect the one
On Oct 27, 2008, at 12:52 AM, Michael Ash wrote:
On Mon, Oct 27, 2008 at 12:07 AM, Michael Nickerson
[EMAIL PROTECTED] wrote:
You can always set things up to ignore child processes:
signal( SIGCHLD, SIG_IGN );
It's bad to rely on this sort of global state, though. What if some
other bit of
The three applications I've written which use my Cocoa wrapper are normal
applications with the exception that they have LSUIElement set to YES, and
means they live in the menu bar as NSStatusItems, not in the Dock.
Therefore, as far as I understand from reading
Like the subject says, can we ask iPhone questions yet? I'm stumped and I need
help.
Thanks,
Cem Karan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
On Oct 27, 2008, at 2:55 PM, I. Savant wrote:
1. Confirmation clarification: do I understand correctly, considering
typical RDBMS data integrity rules, that for most to-one
relationships, I
would set the delete rule to no action, since deletion of the
many item
should not effect the one
On 28 Oct 2008, at 3:27 am, Corbin Dunn wrote:
You probably want to set an appropriate formatter on the cell in -
willDisplayCell:. This sounds like the best approach to what you are
wanting. You could always right a custom formatter if you need to.
OK, thanks, I'll look into that
On Oct 27, 2008, at 4:00 PM, Chilton Webb wrote:
I have a particular problem that is buried deep in layers of logic.
Worse, it only happens on some systems, and only after they've been
running for a long time. I know it's extremely heavy handed, but I
want to know every single function
On Oct 27, 2008, at 4:05 PM, [EMAIL PROTECTED] wrote:
if i call -[anObject performSelectorOnMainThread:aSelector
withObject:nil waitUntilDone:NO] and then later throw an exception
(of my own), which i catch, the deferred execution of aSelector
never happens. note that the
At 6:51 PM -0500 10/27/08, Ken Thomases wrote:
On Oct 27, 2008, at 4:05 PM, [EMAIL PROTECTED] wrote:
if i call -[anObject performSelectorOnMainThread:aSelector
withObject:nil waitUntilDone:NO] and then later throw an exception
(of my own), which i catch, the deferred execution of aSelector
On 26 Oct 2008, at 09:55, Gerriet M. Denkmann wrote:
On 26 Oct 2008, at 00:30, Postmaster wrote:
On 14 Oct 2008, at 21:00, Gerriet M. Denkmann wrote:
On 14 Oct 2008, at 18:07, Jason Coco wrote:
On Oct 14, 2008, at 11:28 , Gerriet M. Denkmann wrote:
HFS+ stores files in decomposed
Forgive me if I'm sounding like a broken record, but after a day
experimenting with different approaches based on ideas that came up
yesterday, I'm pretty confident that everything is sound as far as my
controller class is concerned. I've been mulling this problem over and
wanted to put my
-Michael
smime.p7s
Description: S/MIME cryptographic signature
___
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 27, 2008, at 8:08 PM, Adam Penny wrote:
I am able to write The contents of my one NSTextField to the plist
with CFPreferencesSetAppValue, it's writing the two arrays that is
the sticking point. When I try to do CFPreferencesSetAppValue for
the array(s) I get an EXC_BAD_ACCESS raised
On Oct 27, 2008, at 8:48 PM, Michael A. Crawford wrote:
If the NIB instantiates everything how does the controller get a
reference to the View and the Model?
There are a couple of possibilities:
* The controller is in the nib. This is often the case with an
application controller in
Apple has made an iPhone forum for iPhone developers available here
http://devforums.apple.com/
On Oct 27, 2008, at 6:19 PM, Karan, Cem (Civ, ARL/CISD) wrote:
Like the subject says, can we ask iPhone questions yet? I'm stumped
and I need help.
Hi again!
I'm still plucking along and any help is still greatly appreciated!
Here is the deal: I create a subobject called mySubObject inside my
main object myMainObject. Now I want to access myMainObject from
within mySubObject.
I'm still not sure what the ideal way to do this would be but I
On Oct 27, 2008, at 8:35 PM, john fogg wrote:
Inside mySubObject I cannot access this by writing
[pointerToMainObject doMethod];
but it works when I write
[self.pointerToMainObject doMethod];
Why? What difference does self make here?
Because the latter accesses the property of
I'm new to objective-C and cocoa also, I I don't know the answer to your
specific question about self. However, seems that one way to do it would
be to have the init of mySubObject have an initializer with argument, and
you would then create it something like this:
SubObject * mySubObject =
hello
i am having a hard time catching a bug in a small NSNetService based
app i developed
all works as expected except that it crashes if i try to accees the
menu after a connection is made
i though i had tracked the issue being related to retain / release
issues
more specifically to
On 26 Oct 2008, at 16:37, Gregory Weston wrote:
Amusingly, when you register an unmount or eject approval function
with DiskArbitration, that function gets invoked *after* NSWorkspace
sends its didUnmount notification. How's that for a lead-in anecdote?
So anyway, I'm looking to react to
On 27 Oct 2008, at 13:42, Gregory Weston wrote:
On Oct 27, 2008, at 9:31 AM, Francis Devereux wrote:
On 26 Oct 2008, at 16:37, Gregory Weston wrote:
Amusingly, when you register an unmount or eject approval function
with DiskArbitration, that function gets invoked *after*
NSWorkspace
Hi,
I'm looking for documentation of the binary format that is written by
NSArchiver. The file utility tells me that it's called
NeXT/Apple typedstream data, little endian, version 4, system 1000.
Thanks,
Gregor
___
Cocoa-dev mailing list
I've been searching all over to see if this is possible and have yet
to find an answer. There was a similar email years ago with no
response, and I haven't found the right magic keyword combination to
find the answer on cocoadev. So, please, is it possible to do
hierarchical menus via
I'm using WebKit to download files from a web page. On Leopard (tested
10.5.5) everything works as expected, you can download as many files as you
want concurrently. However, with the same app on Tiger (tested 10.4.10 and
10.4.11), if you have started 3 downloads, clicking on additional downloads
On Oct 27, 2008, at 9:35 PM, john fogg wrote:
Here is the deal: I create a subobject called mySubObject inside my
main object myMainObject. Now I want to access myMainObject from
within mySubObject.
Your terminology is a bit hard to follow. Part of the problem is that
object's don't have
Ken Thomases wrote me off-list. I don't know if this was deliberate (I
guess not) but I'd rather not quote his mail here without his consent.
Anyways the problem is fixed and I understand it all a whole lot
better now. Big thanks to everybody and esp. Ken. You all are very
nice people!!
Hi Ken!
Thank you for your long answer! It cleared up a lot of things for me.
I come from coding in Actionscript (Flash) and there things are
apparently quite different.
Is it true that all instances I create live in memory on the same
level? That they are all somehow equal? And that all
On 28 Oct 2008, at 2:30 pm, john fogg wrote:
I come from coding in Actionscript (Flash) and there things are
apparently quite different.
FWIW, I tried to do some coding in Actionscript a few years ago after
being immersed in C++ for many years and then Objective-C/Cocoa for a
few years.
Hi Graham!
On 10/28/08, Graham Cox [EMAIL PROTECTED] wrote:
FWIW, I tried to do some coding in Actionscript a few years ago after
being immersed in C++ for many years and then Objective-C/Cocoa for a
few years. To say that it was an exercise in utter frustration is an
understatement. [...]
I'm getting the following error:
In NSPredicateEditor: 0x1096070, different number of items (3) than predicate
template views (4) for template MyRowTemplate 0x12487e0: [move:] []
NSStringAttributeType
From experimenting, the only difference between the
NSPredicateEditorRowTemplate that is
On Tue, Oct 28, 2008 at 1:50 AM, Francis Devereux [EMAIL PROTECTED] wrote:
My code works on 10.4 8A428 PPC (after I changed mainRunLoop to
currentRunLoop), but this probably isn't much help to you because
DiskArbitration.framework is private on 10.3.
You can use it fine on 10.3. As far as I
85 matches
Mail list logo