___
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 Subscription:
http://lists.apple.com
CGEventSourceSecondsSinceLastEventType() is what you want. See here:
http://www.noodlesoft.com/blog/2008/01/08/idle-hands/
On May 10, 2010, at 1:26 PM, Marc Respass wrote:
> Hi All,
>
> My application has a requirement that it "locks out" the user after X minutes
> of inactivity. I was using U
On May 10, 2010, at 6:38 PM, Roland King wrote:
> right - it's listed as a property but it doesn't tell you it's an outlet
> anywhere I can see, which would be vaguely useful to know I think.
Yes, you blokes have a Good Point.I wonder how that's done --- some magic
in the
Interface Builde
On or about 5/10/10 6:38 PM, thus spake "Henry McGilton"
:
> As I said, it's listed under Properties in the documentation.
I don't think you understand the problem. Lots of things, for example, are
listed as properties in the UIViewController class documentation. But of
those, only view and sea
> CALayer is not KVO-compliant for its properties.
Kyle... Would you provide a pointer to where this is explicitly stated in the
documentation. thx
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
right - it's listed as a property but it doesn't tell you it's an outlet
anywhere I can see, which would be vaguely useful to know I think.
Henry McGilton wrote:
On May 10, 2010, at 5:31 PM, Matt Neuburg wrote:
I've been thinking about how to explain to a beginner that some classes have
buil
On May 10, 2010, at 6:07 PM, Tom Hohensee wrote:
> Yes it is kind of odd. When I moved on from C to Objective-C and Cocoa I
> found there are many disconnects in the documentation. More specifically, IB
> and class documentation seems to not tie in very well just as you are
> pointing to in
On May 10, 2010, at 5:31 PM, Matt Neuburg wrote:
> I've been thinking about how to explain to a beginner that some classes have
> built-in outlets, and it strikes me that the documentation falls down here.
> For example, you know and I know that a UIViewController has a view outlet;
> it is visib
Yes it is kind of odd. When I moved on from C to Objective-C and
Cocoa I found there are many disconnects in the documentation. More
specifically, IB and class documentation seems to not tie in very well
just as you are pointing to in you question. I always figured it was
because some co
I've been thinking about how to explain to a beginner that some classes have
built-in outlets, and it strikes me that the documentation falls down here.
For example, you know and I know that a UIViewController has a view outlet;
it is visible in the Connections inspector in IB when you select an ob
That's good to know - I'll keep an eye out for it.
Gideon
On 11/05/2010, at 9:40 AM, Gordon Apple wrote:
> There is a bug in the text system, which I have reported and filed
> previously. If you programmatically change the text, the KVO for the
> bindings is not triggered and will not update th
There is a bug in the text system, which I have reported and filed
previously. If you programmatically change the text, the KVO for the
bindings is not triggered and will not update the text storage. If you then
use the keyboard for another edit, it will trigger it and will commit both
changes.
On Mon, May 10, 2010 at 3:45 PM, douglas welton
wrote:
> I would suggest that you use KVO to observe the value of the bounds property
> of your layer. When you are notified of the property change, compute the new
> size for your font at that point.
CALayer is not KVO-compliant for its properti
Julian,
I would suggest that you use KVO to observe the value of the bounds property of
your layer. When you are notified of the property change, compute the new size
for your font at that point.
you may be able to do this rather easily by setting the layers
needsDisplayOnBoundsChange prope
On May 10, 2010, at 3:13 PM, Nick Zitzmann wrote:
> On May 10, 2010, at 3:45 PM, Ben wrote:
>> - Either way, should I be concerned?
>
> Two years ago I would have said yes, because when we published our first
> 64-bit program around that time, we had several users write in and tell us
> they tho
Uli,
On 11.05.2010, at 00:15, ML wrote:
>> Ah, well, What I am trying to do is ensure what version and what application
>> of ours they are running. Our app >>is a plugin and it can be put in a few
>> locations and I want to know. I *can* always check the paths manually >>and
>> decide, but ye
On 11.05.2010, at 00:15, ML wrote:
> Ah, well, What I am trying to do is ensure what version and what application
> of ours they are running. Our app is a plugin and it can be put in a few
> locations and I want to know. I *can* always check the paths manually and
> decide, but yes, perhaps Laun
Hi Guys,
>> Can anyone point me in a direction of the proper way to find a users home
>> directory
> Look at NSHomeDirectory() or NSHomeDirectoryForUser() ?
Oh, I am using currentUserHomeDirectory = NSHomeDirectoryForUser(NSUserName());
but I was told that this was not proper to be used anymor
On May 10, 2010, at 3:45 PM, Ben wrote:
> - Is Activity Monitor likely just reporting this high tide value?
Yes.
> - Is the increase in memory usage (of about 50%) normal?
Yes. Remember, long integers and pointer variables are now twice as large in
64-bit apps. And common Cocoa integer types
On 10.05.2010, at 23:59, ML wrote:
> Can anyone point me in a direction of the proper way to find a users home
> directory
Look at NSHomeDirectory() or NSHomeDirectoryForUser() ?
> and where to find where applications are installed or can I always assume
> /Applications?
There is no place "w
Oh I tried that too, but it made no difference, so was looking to find
something that would force the layout. Considering the symptoms, I think that
the update to the position of the text is happening in the text view is
happening before it gets anywhere near the back end, and nothing I am doing
I'd suggest that you look up NSHomeDirectory and NSHomeDirectoryForUser in the
documentation.
And I'm afraid it's never safe to assume anything... especially given that
users will often do such things as eternally run an application from the
downloaded DMG, and wonder why launching takes a few
On Mon, May 10, 2010 at 2:59 PM, ML wrote:
>
> Can anyone point me in a direction of the proper way to find a users home
> directory and where to find where applications are installed or can I always
> assume /Applications?
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/L
That is terrifying.
I really wish the images worked in that link. Anyone know where you can find
them?
-BJ
On Mon, May 10, 2010 at 3:31 PM, Kyle Sluder wrote:
> On Mon, May 10, 2010 at 2:26 PM, Patrick M. Rutkowski
> wrote:
> > Eh, my rule of thumb is that if I can get it done in less than 48
Can anyone point me in a direction of the proper way to find a users home
directory and where to find where applications are installed or can I always
assume /Applications?
Thank You,
-ML
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pleas
> My application has a requirement that it "locks out" the user after X minutes
> of inactivity.
I would override [NSApplication sendEvent:] and watch for mouse, keyboard and
gesture events. In addition, have a timer running which can check periodically
when the last such was received. Then
I have been adapting an existing app to compile as a 32/64-bit universal, using
the Apple doc "64-Bit Transition Guide for Cocoa".
All has been well and good until I got to the section on optimising memory
performance. A quick look at Activity Monitor reports my app as using 26MB real
memory (r
> OK, tried that. I couldn't do anything there that would force glyph
> generation or layout because it is between a begin and end editing.
I was able to achieve something similar to what you are trying to do by
overriding [NSTextView didChangeText]. At that point, I am able to change the
tex
Le 10 mai 2010 à 22:24, David Duncan a écrit :
> On May 10, 2010, at 1:18 PM, Henry McGilton wrote:
>
>> Hi Scott. Is there any rationale for the change? Or just Evolution In
>> Action?
>
> I would imagine the biggest reason for the change is that if(self = [super
> init]) causes a warning
Le 10 mai 2010 à 22:26, Marc Respass a écrit :
> Hi All,
>
> My application has a requirement that it "locks out" the user after X minutes
> of inactivity. I was using Uli Kusterer's excellent UKIdleTimer in my
> application and it worked great. Then I upgraded to 64-bit and it does not
> wor
On Mon, May 10, 2010 at 2:26 PM, Patrick M. Rutkowski
wrote:
> Eh, my rule of thumb is that if I can get it done in less than 48
> hours, it's not worth pulling in a 3rd party library. Which does error
> handling different, might have to be hacked around in different ways,
> and generally just fee
Eh, my rule of thumb is that if I can get it done in less than 48
hours, it's not worth pulling in a 3rd party library. Which does error
handling different, might have to be hacked around in different ways,
and generally just feels ugly.
If Linked-in doc page ( http://developer.linkedin.com/docs/D
On Mon, May 10, 2010 at 12:28 PM, Patrick M. Rutkowski
wrote:
> I'm really not getting what the "key" argument to CCHmacInit() is
> supposed to be. I'm trying to implement oauth linked-in integration,
Not really an answer to your question, but are you trying to implement
OAuth from scratch? Is th
Someone posting under the name "Sravana Kumar" posted this exact
question a few hours ago.
This is incredibly rude. Sock puppeting the mailing list to solve your
personal problems faster is quite a low maneuver.
--Kyle Sluder
On Mon, May 10, 2010 at 7:36 AM, Sachin Porwal wrote:
> Hi,
>
> I am
If you can't see the view, I'd say that the NIB file might not be loaded
properly. You should check if your current target points toward the info.plist
file you expect (project, edit active target, build tab, check Info.plist
file), and then check that your info.plist mentions the right NIB (ke
I'm really not getting what the "key" argument to CCHmacInit() is
supposed to be. I'm trying to implement oauth linked-in integration,
and linked-in has given me a "secret key" which looks something like:
Yj1-6OZZBInu-xiaBVX7RjAOTVSCFS9_3lmTtvto
(The "" bits are _purely_ just strings of upper or
Hi,
I am facing some Symbolic link refresh issues in my application. My
application 'A' is supposed to create/repair a shortcut created in
/Applications folder. This app should be launched in elevated mode so i am
using 'AuthorizationCreate' to create elevated token and launching the same
process
Being nervous about applying the ! operator to a pointer is needless. It has
always been well defined. From the C specification:
"The operand of the ! operator must have arithmetic type or be a pointer, and
the result is 1 if the value of its operand compares equal to 0, and 0
otherwise. The ty
On 10 May 2010, at 3:18 PM, Henry McGilton wrote:
> By the way, I concur with Thomas Davie: treating a pointer as a Boolean makes
> me nervous.
It shouldn't. Until recently, there was no such thing as a Boolean in C; there
was only the distinction between zero and nonzero. NULL-is-zero-is-false
On May 10, 2010, at 1:24 PM, David Duncan wrote:
>> By the way, I concur with Thomas Davie: treating a pointer as a Boolean
>> makes me nervous.
>
> I don't see any reason not to make the comparison explicit if you desire. I
> do it all the time :).
This has been part of C since the beginning
Hi All,
My application has a requirement that it "locks out" the user after X minutes
of inactivity. I was using Uli Kusterer's excellent UKIdleTimer in my
application and it worked great. Then I upgraded to 64-bit and it does not work
any more. Does anyone have a good replacement or is my best
On May 10, 2010, at 1:18 PM, Henry McGilton wrote:
> Hi Scott. Is there any rationale for the change? Or just Evolution In
> Action?
I would imagine the biggest reason for the change is that if(self = [super
init]) causes a warning for some project settings.
> By the way, I concur with Thoma
On May 9, 2010, at 7:56 PM, Scott Anguish wrote:
> This has been, or is being updated.
>
> The suggested pattern is now
>
> - (id)init
> {
> self = [super init];
> if (self)
> {
>
> }
> return self;
> }
>
> All our documentation has been updated to reflect this (even if it hasn’t
> nec
For problems like this, you should post a sample project. Otherwise, it's just
a guessing game as to what might be missing.
Luke
On May 10, 2010, at 1:10 PM, banane wrote:
> I'm porting an iPhone app to the iPad, and am having issues getting my
> view to appear. I have a sample app I've created
I'm porting an iPhone app to the iPad, and am having issues getting my
view to appear. I have a sample app I've created, and done nothing to
(except change background color). BTW I can do this many different
ways in iPhone, it's just issues in the iPad I'm having.
I brought the XIB and Classes fro
Yo, quick question.
I've got an IB plugin, one of the inspectors has a combo box. I'd like
it to behave like how the NSImageView inspector combo works. It gives
you a drop down of available images. Is there something I can bind the
combo box to in "inspectedObjectsController"?
Thanks!
___
On Mon, 10 May 2010 21:00:40 +0200, Uli Kusterer said:
>> I personally really dislike this one, for two reasons:
>
> Third reason: It gives the method multiple points of return, which is a
>tiny bit dangerous if you're allocating/releasing resources.
Fourth reason: it doesn't play well with code
On May 10, 2010, at 8:19 PM, Thomas Davie wrote:
> I personally really dislike this one, for two reasons:
Third reason: It gives the method multiple points of return, which is a tiny
bit dangerous if you're allocating/releasing resources.
-- Uli Kusterer
"The Witnesses of TeachText are everywhe
On Mon, May 10, 2010 at 11:07 AM, Gideon King wrote:
> OK, tried that. I couldn't do anything there that would force glyph
> generation or layout because it is between a begin and end editing.
Okay... why would you want to force glyph generation or layout? That
notification is your opportunity t
On 10 May 2010, at 16:49, Thomas Wetmore wrote:
> This is the initializer pattern I settled on a few years back:
>
> - (id) init...
> {
>if (!(self = [super init])) return nil;
>...
>return self;
> }
>
> Trillions of calls later I can report upon its serviceability.
>
> I come from
OK, tried that. I couldn't do anything there that would force glyph generation
or layout because it is between a begin and end editing.
On 11/05/2010, at 3:16 AM, Kyle Sluder wrote:
>
> You want to implement -textStorageWillProcessEditing: in your text
> storage delegate.
__
Yeah, I thought that too, and tried calling glyphRangeForTextContainer: which
is apparently supposed to force a re-layout, and also
textContainerChangedGeometry: which I have used successfully in the past to get
around some similar layout issues. Neither worked.
Regards
Gideon
> It’s the lay
On Mon, May 10, 2010 at 9:19 AM, Gideon King wrote:
> From a practical point of view, I haven't found a delegate method that allows
> you to alter the proposed attributes. The closest one is one that acts on
> proposed typing attributes, and I assume that could change with moving the
> insertio
On 10 May 2010, at 16:54, paul morel wrote:
> Hi everybody,
> thanks a lot for your help.
> Actually you were right it size a problem of size. I increased the size and
> it works.
See, that worries me.
> The size was 20 because I thought that '\t' or other thing like that were
> considered d
On May 10, 2010, at 9:19 AM, Gideon King wrote:
> From a conceptual point of view, my understanding of MVC means that a user
> initiated action should be reflected in the model (text storage), which
> should push it through to the view, which should mean that doing the changes
> in the text st
On May 10, 2010, at 8:54 AM, paul morel wrote:
> But what is weird is that it seems that with Mac OS X 10.5 there is no
> problem, whereas when I use Mac OS 10.6 the problem occurs.
Buffer overflows can be sneaky. The effect depends on exactly how variables are
laid out in the stack (or if it’
> On May 10, 2010, at 9:12 AM, Trygve Inda wrote:
>
>> I have an NSArrayController containing items and a text field in a window
>> which is bound to a custom class "MyController" via model key path:
>> filteredResultsString
>>
>>
>> -(NSString *)filteredResultsString
>> {
>> return ([[NSNumber
From a practical point of view, I haven't found a delegate method that allows
you to alter the proposed attributes. The closest one is one that acts on
proposed typing attributes, and I assume that could change with moving the
insertion point, as well as when changing attributes, and would presu
That is a very good idea, and it works, thank you. I have also tried this on
the QTMovie:
[newMovie setDraggable:NO];
and that works too. However, there is no real telling what setting a private
iVar will do, so I am glad you told me about a cleaner way of this.
R.
On May 8, 2010, at 13:28 ,
Hi everybody,thanks a lot for your help. Actually you were right it size a
problem of size. I increased the size and it works. The size was 20 because I
thought that '\t' or other thing like that were considered directly as the
'final value', i.e. a space for example. And the value of n1 is 3.
On May 10, 2010, at 4:54 AM, Gideon King wrote:
> Hi, I am trying to override the setting of text size in my text storage
> subclass. I have overridden the setAttributes:range: method, and told the
> text to use a standard font size (keeping the other font attributes), but
> when I am editing,
This is the initializer pattern I settled on a few years back:
- (id) init...
{
if (!(self = [super init])) return nil;
...
return self;
}
Trillions of calls later I can report upon its serviceability.
I come from an old school, formed in the mid 60's, the Savers Institute for
Inden
Hi all,
I am facing some weird refresh issue with Symbolic links. My application 'A'
is supposed to create/repair a shortcut in /Applications folder. This app
should be launched in elevated mode using 'AuthorizationCreate' and
launching the same process 'A' with this token (the shortcut is created
On May 10, 2010, at 9:12 AM, Trygve Inda wrote:
> I have an NSArrayController containing items and a text field in a window
> which is bound to a custom class "MyController" via model key path:
> filteredResultsString
>
>
> -(NSString *)filteredResultsString
> {
> return ([[NSNumber numberWithIn
I have an NSArrayController containing items and a text field in a window
which is bound to a custom class "MyController" via model key path:
filteredResultsString
-(NSString *)filteredResultsString
{
return ([[NSNumber numberWithInt:[[itemsController arrangedObjects] count]]
stringValue]);
}
T
Hi, I am trying to override the setting of text size in my text storage
subclass. I have overridden the setAttributes:range: method, and told the text
to use a standard font size (keeping the other font attributes), but when I am
editing, and use the font panel to set the font, although the corr
On 10 May 2010, at 00:50:41, G S wrote:
You need to Control-drag to a region in the NSTextView that
conceptually represents a first line of text (somewhere near the
top) if it's empty, or to the visible text if it's not, to select
the textView instead of the scrollView.
Yep, that's it!
Have to say, that i'm new to cocoa and even newer to core animation. i have
tried so far, bit trail&errorly: CAConstraint, autoresizingMask,
preferredFrameSize and googled for the problem. I know, newbie questions suck :)
lg, Julian.
Am 10.05.2010 um 04:33 schrieb Kyle Sluder:
> On May 9, 20
Thanks Paul, that was helpful.
I am able to add the close button to my window using standardWindowButton,
but facing some refreshing problems.
First time when I load the window and add button to it, close button is able
to draw itself properly. But if i close this window and reopen it again,
then
On May 9, 2010, at 23:21, Mark Sanvitale wrote:
> Now, the question. If the pending changes within my moc includes the
> deletion of objects and the to-be-deleted objects include a relationship
> property with a "cascade" delete rule then should the pool of objects
> returned by an includesPen
70 matches
Mail list logo