Hi Arri,
Subclassing UIWebView is probably not going to get your app rejected (though I
have no insight in to the approval process). However from a architecture
point-of-view, it smells bad. UIWebView is one of those views that's not
intended to be subclassed. Sure you can, since you can
On 8 Aug 2011, at 16:02, Kyle Sluder wrote:
On Aug 8, 2011, at 4:54 AM, Chris Ridd chrisr...@mac.com wrote:
Does OS X really support the sticky bit? Lion's sys/stat.h suggests no,
though this line could be read a couple of ways:
Yep, it's supported and used on directories. Don't think
I have a slow image conversion which I want to throw onto a background thread
using GCD. The actual method which does the conversion takes a CGImageRef and
the code looks like this
-(void)convert:(CGImageRef)image withBlock:(ImageResizedBlock)callbackBlock
{
dispatch_async(
On 8 Aug 2011, at 19:44, Jens Alfke wrote:
It’s clearly a SAX parser. SAX parsers are incremental, that’s their whole
point, otherwise it would be easier just to use a DOM API like NSXMLDocument.
The docs implies that it is (related to it):
On 8 Aug 2011, at 19:20, Thomas Davie wrote:
All of this is asynchronous, so everything works happily :)
Sure, we have established that your solution works, so far so good.
What I am trying to get at is whether there is some design-pattern implied in
the docs for the class which should alert
Hi all,
I am writing an API client for a REST service, parts of the REST API
returns fixed String values. E.g. status of an order.
I want to represents these fixed responses as constants. I have
represented fixed numeric values using enums and used a typedef to
represent the data type.
Are
Hi,
I'd like to be able to use my mac app to upload an image to a server.
From googling it seems the best way to achieve this is using the
ConnectionKit framework to upload it via FTP.
I've downloaded the framework, but Im at a loss, the examples
included don't build, and looking at the
Don't forget about @:
#define MY_FUNNY_STR @Ha-ha-ha!
09-Aug-11 13:47, Devraj Mukherjee пишет:
Hi all,
I am writing an API client for a REST service, parts of the REST API
returns fixed String values. E.g. status of an order.
I want to represents these fixed responses as constants. I have
I have a document-based application that uses garbage collection. It's
straight-forward in terms of having subclasses of NSDocument, NSWindow, and
NSWindowController, and documents have a single window (with drawer, if that
makes any difference).
But when I close a window/document, the window
The error is appearing in Lion but only on one specific Mac and one specific
user. Other users are fine and other Macs are fine. There is something
specific to the system in this case and it's the minority I'm sure, but still
trying to figure out what it is...
On Aug 9, 2011, at 8:19 AM,
Forget any notion of doing this for NSTextView I'd advise; Safari and Mail are
based around WebViews.
On 8 Aug 2011, at 19:47, Joshua Garnham wrote:
I need to know when text is entered (or anything relating to a delegate
method happens) in any NSTextView in the active app whether it's my
I toyed with doing something very similar for plists that might be of interest:
https://github.com/mikeabdullah/KSPropertyListEncoder
On 8 Aug 2011, at 17:56, Jens Alfke wrote:
Been thinking about archiving NSObjects to/from JSON, using an API similar to
NSCoding. I haven’t found any prior
I am having a problem with rendering text on a CALayer.
AFAIK, it works just fine with all users ... except one, where the text just
does not show!
This is my code for printing the text:
@interface TextLayerDelegate : NSObject
{
// ...
}
- (void) drawLayer: (CALayer *) theLayer inContext:
Why have you picked FTP?
On 9 Aug 2011, at 12:04, Amy Heavey wrote:
Hi,
I'd like to be able to use my mac app to upload an image to a server. From
googling it seems the best way to achieve this is using the ConnectionKit
framework to upload it via FTP.
I've downloaded the framework,
I'm not so bothered about Safari/Mail, I just used Safari as an example of
what I wanted to do. I'd rather focus on doing it with NSTextView as that is
what the majority of text editing apps use.
I have - since I first asked the question - been using the Accessibility API's
to find out
It is not possible this way. You should not inject your code willy-nilly into
other apps.
On 9 Aug 2011, at 13:48, Joshua Garnham wrote:
I'm not so bothered about Safari/Mail, I just used Safari as an example of
what I wanted to do. I'd rather focus on doing it with NSTextView as that is
On 2011 Aug 09, at 03:47, Devraj Mukherjee wrote:
Are Strings defined using #define good enough as String constants?
It will work, but is considered to be bad form, I think because it could bloat
your code some trivial amount by having a constant defined multiple times, if
the compiler does
I wouldn't be doing it 'willy-nilly', I would only do it if necessary and the
code would serve only one sole purpose. However, you are correct in saying that
it does not seem that it is possible the way I have been hoping to do it and so
I will have to try and find some other way.
On
On 8 Aug 2011, at 17:56, Jens Alfke wrote:
Been thinking about archiving NSObjects to/from JSON, using an API similar to
NSCoding. I haven’t found any prior art, but I thought I’d ask here.
I am not talking about serializing JSON to/from collection objects a la
TouchJSON, JSONKit, etc.;
It seemed the easiest way of uploading a file to the server?
Regards
Willow Tree Crafts
Www.willowtreecrafts.co.uk
On 9 Aug 2011, at 13:46, Mike Abdullah cocoa...@mikeabdullah.net wrote:
Why have you picked FTP?
On 9 Aug 2011, at 12:04, Amy Heavey wrote:
Hi,
I'd like to be able
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote:
I have checked that 'str' does actually hold a valid string at the user's
instance. (I logged it and had him send me the log file.)
I have also tried different font sizes.
I have also googled around.
All to no avail.
Does anybody
On 09/08/2011, at 10:43 PM, Gabriel Zachmann wrote:
I have checked that 'str' does actually hold a valid string at the user's
instance. (I logged it and had him send me the log file.)
CGContextSelectFont( ctxt, AndaleMono, 14, kCGEncodingMacRoman ); //
Andale Mono doesn't work
My point is that you're not constrained to it.
ConnectionKit is almost certainly overkill for this. If you're determined to
use FTP, check out CFWriteStreamCreateWithFTPURL(). In general, I'd advise a
WebDAV-like system fed by NSURLConnection is best.
On 9 Aug 2011, at 14:15, Amy Gibbs wrote:
On 2011 Aug 08, at 09:29, Kevin Perry wrote:
You may be able to work around this problem by overriding
-autosaveWithImplicitCancellability:completionHandler: instead (also?) and
doing the same approach of delaying NSDocument's code until once you've
completed the background work.
Thank
On 2011 Aug 09, at 05:24, Shane Stanley wrote:
Any thoughts/suggestions?
See if -dealloc is running in your NSDocument subclass. Probably not. In that
case, it's you're whole document that's lingering, not just the window.
Never used garbage collection, so someone else will need to help
Thanks a lot Josh and Sean. I never remember to read the release notes but I
just went through AppKit's. I'm going back to the straight iVar style for Mac
OS X for now. I was putting them all in the class continuation category anyway
since they shouldn't be exposed externally.
Marc
On Aug 8,
I'm certainly noy tied to FTP, and I'll have a go with
NSURLConnection. I did try to use that for another part but I just
couldn't get it to work. Is there a particular sample/tutorial you
could recommend?
In the following code, accessing the URL in a webView works, but the
Thanks a lot for your response ...
I've found the Core Graphics text handling methods to be gnarly and awkward
the few times I've attempted to use them, and always ended up going some
other route to render text.
Could you please point me to a few of them?
In your case, the choice seems
On 10/08/2011, at 12:48 AM, Gabriel Zachmann wrote:
Could you please point me to a few of them?
NSString, NSAttributedString, Core Text
Can CATextLayer render text with a shadow?
Like this:
CGContextSetShadowWithColor( ctxt, CGSizeMake(0,0), 10, blue );
I really need the shadow to be
On Aug 9, 2011, at 9:48 AM, Gabriel Zachmann wrote:
Thanks a lot for your response ...
I've found the Core Graphics text handling methods to be gnarly and awkward
the few times I've attempted to use them, and always ended up going some
other route to render text.
Could you please
On Aug 9, 2011, at 7:58 AM, Jerry Krinock wrote:
This is how it's usually done:
In a .m, .c or .cpp file,
NSString* const constEntityNameLog = @Log_entity ;
and if you need to use this constant in other files, add, in the counterpart
header file,
extern NSString* const
Hello,
I need to scan images into my app.
Which technology should I use, it has to work from 10.5.x upwards, PPC and
Intel, 32 and 64 bits.
I know only of ICA.
Is there something better (ICA dates back to 10.2) ?
Thanks.
--
Keep intel OUTSIDE my Mac !
Hiii !!! I can see Intel chips creeping
The startImmediately parameter is a BOOL, not a string. Use YES instead of
@YES and see if that helps.
Tom W.
On Aug 9, 2011, at 10:44 AM, Amy Gibbs wrote:
I'm certainly noy tied to FTP, and I'll have a go with NSURLConnection. I did
try to use that for another part but I just couldn't get
Reference my iOS TabController app...
Apple docs state that the AVAudioPlayer class does not provide support for
streaming audio based on HTTP URL's. AVAudioPlayer plays only music embedded in
the iApp.
Given that, I do use MPMoviePlayerController to play these web stored audio/mp3
files
Hi Tom,
Yes I'm talking about scanner devices.
But I don't have to support versions EARLIER than 10.5, but from 10.5 to 10.7.
So is it twain or ICA ?
Which one should have the longest life ?
Thanks.
Tom Hohensee wrote:
If you are talking getting images from scanner device. You need TWAIN for
On Aug 9, 2011, at 9:42 AM, Eric Matecki wrote:
Hi Tom,
Yes I'm talking about scanner devices.
But I don't have to support versions EARLIER than 10.5, but from 10.5 to 10.7.
So is it twain or ICA ?
In our SOHO Notes product, we use:
* IKScannerDeviceView if the user is using Snow
Hello, Eric,
I thought that the machines I'm running it on were a range of 10.5 and 10.6 but
it looks like I'm probably mistaken there. Sorry.
Regards, Rob.
On 9 Aug 2011, at 16:54, Eric Matecki wrote:
Hi Robert,
I just downloaded it, but the Build (and Runtime) Requirements are Mac OS X
Hi Nick,
I will try this tomorrow.
Probably won't use twain, if the device isn't supported by ImageKit nor ICA,
just too bad.
Thanks.
Nick Zitzmann wrote:
On Aug 9, 2011, at 9:42 AM, Eric Matecki wrote:
Hi Tom,
Yes I'm talking about scanner devices.
But I don't have to support versions
CGContextSelectFont( ctxt, AndaleMono, 14, kCGEncodingMacRoman );
// Andale Mono doesn't work either
Perhaps he doesn't have Andale Mono on his machine? I'm not sure what CG
does with text if the font isn't there, does it fall back to something else
or just silently fail?
I think
I think I get it re: printing but would like some verification of my
understanding.
When printing, the printing context coordinate system is measured in points (pt
= 1/72 inch).
When getting paper size it is returned in points.
The printing context is device independent.
So, to print an
Ikscannerdevice (part if image kit) and its related classes is the
new method going forward. There is a drop in IB solution. Double check
10.5 compatibility. Really easy.
Sent from my iPhone
On Aug 9, 2011, at 10:43 AM, Eric Matecki eml...@wanadoo.fr wrote:
Hi Tom,
Yes I'm talking about
Is there a function like NSLog() that doesn't print the timestamp (and other
crap) and doesn't automatically append a '\n' at the end? If not, what would be
the best way to implement such a function. Trouble is, printf() doesn't
understand the %@ specifier, so that approach would be a PITA.
Try something like this:
http://cocoaheads.byu.edu/wiki/different-nslog
Cheers,
Dave
On Aug 9, 2011, at 9:30 AM, William Squires wrote:
Is there a function like NSLog() that doesn't print the timestamp (and other
crap) and doesn't automatically append a '\n' at the end? If not, what would
On Aug 9, 2011, at 6:10 AM, jonat...@mugginsoft.com wrote:
Have you thought about using YAML?
YAML is nice, but this is for CouchDB, which is already strongly based on JSON.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
___
On Aug 9, 2011, at 7:44 AM, Amy Gibbs wrote:
NSURL *uploadURL = [[NSURL alloc] initWithString:escapedUrl];
NSMutableURLRequest* post = [NSMutableURLRequest requestWithURL: uploadURL];
If you want to upload anything, you want to send a PUT or POST request, but the
default is a GET; sou need
On Aug 9, 2011, at 9:30 AM, William Squires wrote:
Is there a function like NSLog() that doesn't print the timestamp (and other
crap) and doesn't automatically append a '\n' at the end? If not, what would
be the best way to implement such a function. Trouble is, printf() doesn't
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 8/9/11 6:15 AM, Amy Gibbs wrote:
It seemed the easiest way of uploading a file to the server?
In addition to what others have mentioned, it is worth pointing out that
FTP is a notoriously insecure protocol (or at least lends itself to
security
On Aug 8, 2011, at 10:51 PM, arri wrote:
After allot of writing test-cases, and googling for others' experiences, i
found that the most easy and straightforward way of achieving what i want, is
to simply subcass UIWebView and override UIViews' - hitTest:withEvent method.
However, as
On Aug 9, 2011, at 9:14 AM, Eric Matecki wrote:
Which technology should I use, it has to work from 10.5.x upwards, PPC and
Intel, 32 and 64 bits.
Well, TWAIN is not currently supported for 64-bit, and it's not clear that it
ever will be.
--
Scott Ribe
scott_r...@elevated-dev.com
On Aug 8, 2011, at 11:43 PM, Roland King wrote:
After a bit of googling I came across some posts which explained Block_Copy()
would treat a variable adorned with __attribute__((NSObject)) similarly to
NSObjects and retain them. So changing the method signature to this
Devraj Mukherjee wrote:
I am writing an API client for a REST service, parts of the REST API
returns fixed String values. E.g. status of an order.
I want to represents these fixed responses as constants. I have
represented fixed numeric values using enums and used a typedef to
represent
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 8/8/11 5:49 PM, Graham Cox wrote:
I can tell you that 25,000 points in a bezier path will make for
slow drawing, though it also depends on your hardware of course.
Lo and behold, when I went from 7500 points (which rendered instantly)
to 25000
On Mon, 8 Aug 2011 09:56:07 -0700, Jens Alfke said:
Been thinking about archiving NSObjects to/from JSON, using an API
similar to NSCoding. I haven’t found any prior art, but I thought I’d
ask here.
Lion has NSJSONSerialization:
On Aug 9, 2011, at 3:47 AM, Devraj Mukherjee wrote:
I am writing an API client for a REST service, parts of the REST API
returns fixed String values. E.g. status of an order.
I want to represents these fixed responses as constants. I have
represented fixed numeric values using enums and
On Aug 9, 2011, at 10:10 AM, Gregory Weston wrote:
I'm still generally in favor of named constants over pre-processor
substitution. Gives you types and no worry about parentheses.
You can also use the global constant in the debugger (including in command
completion) because it has a symbol
On Aug 9, 2011, at 05:24 , Shane Stanley wrote:
I have a document-based application that uses garbage collection. It's
straight-forward in terms of having subclasses of NSDocument, NSWindow, and
NSWindowController, and documents have a single window (with drawer, if that
makes any
On Aug 9, 2011, at 10:45 AM, Sean McBride wrote:
Lion has NSJSONSerialization:
I know, and I already use it. Not the same thing, though: in my original
message I wrote I am not talking about serializing JSON to/from collection
objects a la TouchJSON, JSONKit, etc.;”.
—Jens
smime.p7s
I have implemented
- (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes:
(NSIndexSet *) indexes
and
- (BOOL) imageBrowser:(IKImageBrowserView *) aBrowser moveItemsAtIndexes:
(NSIndexSet *)indexes toIndex:(NSUInteger)destinationIndex
They are in the same file.
How are you handling the drag operation?
Sent from my iPhone
On Aug 9, 2011, at 2:49 PM, koko k...@highrolls.net wrote:
I have implemented
- (void) imageBrowser:(IKImageBrowserView *) view removeItemsAtIndexes:
(NSIndexSet *) indexes
and
- (BOOL) imageBrowser:(IKImageBrowserView *)
You can use libcurl:
http://curl.haxx.se/
Extremely powerful library, which is a part of Mac OS X, that supports
most protocols (FTP, SFTP, HTTP etc.) I find it very easy to use - but
I've been using it for years in either its command line (curl) or
library implementation.
There's also
I just saw another Apple example that showed dragging implementations required,
this was not in the first example I saw.
So I am doing the dragging stuff.
Thanks.
-koko
On Aug 9, 2011, at 3:07 PM, Tom Hohensee wrote:
How are you handling the drag operation?
Sent from my iPhone
On Aug
On 9 Aug 2011, at 21:36, Leo wrote:
You can use libcurl:
http://curl.haxx.se/
Extremely powerful library, which is a part of Mac OS X, that supports most
protocols (FTP, SFTP, HTTP etc.) I find it very easy to use - but I've been
using it for years in either its command line (curl)
On Aug 9, 2011, at 11:50 PM, Jerry Krinock wrote:
See if -dealloc is running in your NSDocument subclass. Probably not. In
that case, it's you're whole document that's lingering, not just the window.
Dealloc isn't called with GC, and the document isn't lingering -- it's just the
window.
On Aug 10, 2011, at 3:51 AM, Quincey Morris wrote:
It's not entirely clear what it is you're expecting here.
What I'm expecting is that when I close a document, the document, the window
controller and the window will disappear.
AFAICT -- and I have spent some time pondering the
On Aug 8, 2011, at 4:35 AM, Nick Shore wrote:
I was in fact using existing databases - actually the update I'm working on
has a migration involved in it too. I didn't mention it originally as I'd
ruled it out as the cause, but that actually helped fix the problem. Since I
was already
Thanks, this is the sort of thing I'm looking for, but is one of those cases of
if you don't know the right thing to ask for, you can't Google it... In this
case, the 'right thing' is QuietLog. :)
On Aug 9, 2011, at 11:31 AM, Dave DeLong wrote:
Try something like this:
On 10 Aug 2011, at 02:29, William Squires wrote:
Thanks, this is the sort of thing I'm looking for, but is one of
those cases of if you don't know the right thing to ask for, you
can't Google it... In this case, the 'right thing' is QuietLog. :)
Try Google with NSLog without timestamp --
On 10/08/2011, at 2:06 AM, Gabriel Zachmann wrote:
Just checked the doc of CATextLayer but couldn't find a hint on how it helps
me determine whether or not a font is installed ... can you tell me?
I doesn't. But it falls back gracefully, AFAIK.
If you need a specific non-standard font, you
On 8/9/11 6:28:54 PM, Mike Abdullah wrote:
Bear in mind PolKit is GPL, unless the author gives you permission otherwise.
Yeah actually I had to mention this but it didn't look like the original
question referred to a commercial product.
___
I implemented drag and drop in an NSTableView by writing the row indexes of the
rows to be copied/moved to the pasteboard, which works.
Now I want to allow drag and drop from one document to another, and my first
guess was to write the row data to the pasteboard.
What puzzles me, is how to
I just got back to this problem (after watching the WWDC11 Resume and Automatic
Termination video). I added an additional override and license check in:
-[NSDocumentController
reopenDocumentForURL:withContentsOfURL:display:completionHandler:]
And now my modal window displays before the
On Aug 10, 2011, at 3:51 AM, Quincey Morris wrote:
use the debugger's 'info gc-roots' command (having set a breakpoint somewhere
after the window has been closed and the collector has had time to run,
preferably) to find out what's keeping the window alive.
So I get this:
info gc-roots
On Aug 9, 2011, at 21:33 , Shane Stanley wrote:
info gc-roots 0x4011fcca0
Number of roots: 7
Root: #1
0 Kind: stack rc: 0 Address: 0x7fff5fbfe288 Frame level: 1
Symbol: unknown
1 Kind: object rc: 0 Address: 0x0004011fcca0 Class: MyWindow
Root: #2
0 Kind: stack
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month.
Please join us TONIGHT from 7pm to 9pm on Wednesday, 8/9. We will be
meeting at the Orange County Public Library (El Toro) community room,
24672 Raymond Way, Lake Forest, CA 92630
Greetings, all,
We will be walking
Date corrected:
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month.
Please join us TOMORROW from 7pm to 9pm on Wednesday, 8/10. We will
be meeting at the Orange County Public Library (El Toro) community
room, 24672 Raymond Way, Lake Forest, CA 92630
Greetings, all,
We
On 8/5/11 4:43:06 AM, Uli Kusterer wrote:
On 05.08.2011, at 08:49, Jens Alfke wrote:
Photoshop has always used letter keys as commands to select tools, and most
other image editors on Mac follow suit, like Pixelmator and (I think) Acorn.
I’m not sure if these show up in menus, though,
On Aug 10, 2011, at 3:12 PM, Quincey Morris wrote:
Starting at the bottom, the last 3 show strong references to the window from
object 0x000400efa2e0. *That* object is being kept alive by 2 stack
references (#6 and #7), but it's a root reference in itself. I wouldn't be
surprised if
77 matches
Mail list logo