On Jun 7, 2010, at 11:04 PM, Graham Cox wrote:
I need to be able to make a .gzip file from a FOLDER on my hard disk
programatically.
I would use ditto to produce the tarball, because it will produce the
same results as the Finder.
--Kyle Sluder
(Sent from my hotel room at WWDC, where you
On 08/06/2010, at 4:21 PM, John Joyce wrote:
> which
>
> and that will let you locate the actual path of the command line tool you
> want to use. (pass that path to your next NSTask)
Ok... but doesn't that just displace the problem one step? How do I find the
path to without being able to r
On 08/06/2010, at 4:16 PM, Stephen J. Butler wrote:
> b) In a working OS X system, the unix executables will always be where
> they're supposed to be (ie: /bin, /sbin, /usr/bin, /usr/sbin, etc).
Thanks Stephen, so given the four choices I looked at each and find zip in
/usr/bin
The question i
On Jun 8, 2010, at 1:16 AM, Stephen J. Butler wrote:
> On Tue, Jun 8, 2010 at 1:04 AM, Graham Cox wrote:
>> I need to be able to make a .gzip file from a FOLDER on my hard disk
>> programatically.
>
> a) You can't gzip a folder. That's why people tar the folders, then
> gzip the tar file (or j
It has been pointed out to me off-list that I've been labouring under the
misapprehension that gzip is equivalent to zip, which appears not to be the
case. It might explain why it was hard to find relevant info.
So I need zip then... otherwise same discussion applies. I don't really care
how I
On Tue, Jun 8, 2010 at 1:04 AM, Graham Cox wrote:
> I need to be able to make a .gzip file from a FOLDER on my hard disk
> programatically.
a) You can't gzip a folder. That's why people tar the folders, then
gzip the tar file (or just use the 'z' option in tar).
b) In a working OS X system, the
I need to be able to make a .gzip file from a FOLDER on my hard disk
programatically.
I've searched the archives and Googled for it, and now I'm just confused. Some
folk advocate linking to the library directly, other to invoke it via NSTask.
Since it's a folder I need to compress, not in-memor
I have a view that has among other things a segmented control. In the
printing code I want to print a string that represents the current
state of the segmented control. However, whenever I query the
segmented control with -selectedSegment in the print code, I get a
value of 0. On the other
Thanks Jim - I switched it over and it works fine, and with much less overhead
on mouse moved too.
Regards
Gideon
> If I understand correctly you are calling NSCursor's -set from within your
> view's -mouseMoved: method. If you are just changing cursor to indicate
> resize control areas, it
I've been meddling with IKImageview for the last couple of days.
As far as I've seen I think there isn't a method that will return the
bounding rect of of the zoomed/panned image within the image view.
Can someone please confirm or deny?
I'm thinking the only way to know for now is to track it b
On Jun 1, 2010, at 9:18 PM, Hank Heijink (Mailinglists) wrote:
> On Jun 1, 2010, at 5:09 PM, Fritz Anderson wrote:
>
>> On 31 May 2010, at 11:58 PM, Development wrote:
>>
>>> I have a Scroll view that contains a master view. This master view adds
>>> page sized views of image data, specificall
Thanks for all your replies, Martin and Paul.
Martin, I tried the " [NSTextView scrollRangeToVisible:] with
NSMakeRange(0,0) ", but it is the same as to use [scrollPoint:] solely. Only
with [glyphRangeForTextContainer:] in prior the scroll-to-top works. I don't
think it is the problem of coordinat
Paul,
You're quite right. I commented out the call to shouldChangeTextInRange: and
my code still does what I want. Thanks for pointing this out.
I'll have a look at the documentation on methods for bracketing multiple
changes to the text (after I get my head around efficiently creating trian
Hi Martin,
You are right - that works. I can swear that I have tried this before.
But looks like was overridden to much methods. Now I have started this
part from scratch and..tadaaa.
Thank you.
Regards,
Rimas M.
On Tue, Jun 8, 2010 at 12:17 AM, Martin Wierschin wrote:
> Hi Rimas,
>
> I want m
Le 7 juin 2010 à 16:39, Gabriel Zachmann a écrit :
> I have an application with LSBackgroundOnly = on, and LSUIElement = off.
>
> Unfortunately, it crashes occasionally, or, rarely, it just hangs for a
> minute (with beach ball) then comes back to life.
>
> So far, I have been unable to find a
On 7 Jun 2010, at 15:39, Gabriel Zachmann wrote:
>
> All kinds of suggestions, insights, and tips will be highly appreciated.
>
A quick and easy way to find out where an app is hung is to sample it in
Activity Monitor.
Regards,
Paul Sanders.
___
C
On 7 Jun 2010, at 15:39, Gabriel Zachmann wrote:
>
> All kinds of suggestions, insights, and tips will be highly appreciated.
>
Have you sampled your app extensively?
If not I would suggest getting to know Shark.
Regards
Jonathan Mitchell
Developer
Mugginsoft LLP
http://www.mugginsoft.com
_
On 2010.06.07, at 2:10 PM, Paul Sanders wrote:
I encountered a wired behavior of NSTextView. I tried to use the
following statement to scroll to top:
[[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];
where the *documentView* is a NSTextView. But it seems when the
window is in
cert
I encountered a wired behavior of NSTextView. I tried to use the
following
statement to scroll to top:
[[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];
where the *documentView* is a NSTextView. But it seems when the
window is in
certain size, the scroll-to-top behavior does not t
A quick reminder. Aside from the Keynote, all the sessions of WWDC are under
non-disclosure and cannot be discussed here.
Thanks
Scott
[Moderator]
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
Hi Rimas,
I want menu to have only my custom items. No spelling & co above my
items. Always. Even with some text selected.
How could I achieve that?
In your NSTextView subclass, you can override -[NSTextView
menuForEvent:] to return your custom menu.
~Martin
_
On 7 Jun 2010, at 12:01 , Gideon King wrote:
> I have a view where I set the cursor in a mouse moved event, when the mouse
> is over certain places in my view (resize handles for objects). This works
> fine, but sometimes I need to add some subviews to this view, and for some
> reason, when I
I have an application with LSBackgroundOnly = on, and LSUIElement = off.
Unfortunately, it crashes occasionally, or, rarely, it just hangs for a minute
(with beach ball) then comes back to life.
So far, I have been unable to find a case where this happens deterministically.
So, could you please
> I encountered a wired behavior of NSTextView. I tried to use the following
> statement to scroll to top:
> [[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];
>
> where the *documentView* is a NSTextView. But it seems when the window is in
> certain size, the scroll-to-top behavior does
hi-
i have an NSMenu attached to a NSStatusBarItem and its being displayed properly,
except for a single NSMenuItem in that menu, which contains as a view with a
single
search field:
NSMenuItem* firstItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]]
initWithTitle:@"Test" action:NULL keyE
Hello list,
Congrats on WWDC week. Have great sessions :)
I have some troubles implementing custom context menu in NSTextField.
While field is editing, field editor take control over field. So I
implemented my custom field editor:
- (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id
On Jun 7, 2010, at 2:58 PM, Jens Alfke wrote:
> On Jun 7, 2010, at 3:31 AM, Ken Thomases wrote:
>
>> Why do you need such a notification? Windows don't "spontaneously" become
>> visible unbeknownst to your code.
>
> I’ve run into this in an app that has a singleton panel, which I want to
> pe
On Jun 7, 2010, at 3:31 AM, Ken Thomases wrote:
> Why do you need such a notification? Windows don't "spontaneously" become
> visible unbeknownst to your code.
I’ve run into this in an app that has a singleton panel, which I want to
persistently remember whether it’s open or closed. In other
On Jun 5, 2010, at 12:26 PM, Matthew Weinstein wrote:
> I think I must be missing some simple method in the api to do this, but,
> given a range of a PDFDocument string, how do I convert that to a selection?
> I found the PDFPage selection from range, but how do I find what pages a
> selection f
Hi all,
I have a view where I set the cursor in a mouse moved event, when the mouse is
over certain places in my view (resize handles for objects). This works fine,
but sometimes I need to add some subviews to this view, and for some reason,
when I do, it stops setting the cursors in some of th
> /** ADDED CODE **/
> NSMutableDictionary* typingAttributes = [[myTextView typingAttributes]
> mutableCopy];
> [typingAttributes setObject:paraStyle forKey:NSParagraphStyleAttributeName];
> [myTextView setTypingAttributes:typingAttributes];
> NSRange rangeOfChange = NSMakeRange(0, [[myTextView st
I encountered a wired behavior of NSTextView. I tried to use the following
statement to scroll to top:
[[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];
where the *documentView* is a NSTextView. But it seems when the window is in
certain size, the scroll-to-top behavior does not take ef
> Greetings.
>
> I'm building a iPhone application which is database driven.
> in that application i've designed it to have two databases.
> One database will be distributed with the application and is meant to be read
> only.
> the second database is meant to copy items to it for the user's saf
On Jun 7, 2010, at 7:36 AM, lorenzo7...@gmail.com wrote:
Can someone point me to documentation on how to create a Photoshop
plugin in XCode? I've found bits and pieces about the internet, but
nothing that gives a clear understanding of how to go about it. The
Photoshop SDK and samples seem
Can someone point me to documentation on how to create a Photoshop plugin
in XCode? I've found bits and pieces about the internet, but nothing that
gives a clear understanding of how to go about it. The Photoshop SDK and
samples seem to come from the days when Gil Amelio was in charge at Appl
On 2010-06-06, at 10:11 PM, Development wrote:
> Cocoa Talk is a brand new video blog on cocoa.
>
> Check it out at http://cocoatalk.libsyn.com/
>
> This episode concerns UIViews and touches.
Please, if your entire post is about promoting a blog, product, job position,
remember to run it bu
> Am 04.06.2010 um 07:11 schrieb Chris Idou:
>
>> How does one get notification that a window has become visible? I
>> can see notifications for most every type of window event except
>> this most obvious one.
Why do you need such a notification? Windows don't "spontaneously" become
visible
Hi All,
I have written a standalone Qt Core Application in which the only call
is to a constructor of a library which is written in Cocoa and using 10.5 as
base SDK.
As soon as I run this application it crashes with below errors:
What could be the problem: The logger constructor is basically
On 7 Jun 2010, at 02:16, Chris Idou wrote:
> Is it? Can't a window become visible without becoming key?
Indeed. NSWindowDidBecomeKeyNotification won't do it for you.
You might be able to use NSWindowDidUpdateNotification for this, since you'll
get one of these before the window is displayed on
I don't know, what the idea is behind your question. But if it's not
the only window, that's displayed in your app, you could change that
by making another window the keyWindow or by using
unhideWithoutActivation ( NSApplication class )...
For better answers some more information would be n
40 matches
Mail list logo