Re: Barcode scanner

2011-04-27 Thread Kyle Sluder
On Wed, Apr 27, 2011 at 9:26 AM, Shawn Bakhtiar wrote: > CAUSION!!! >  MySQL is not something to leave open to a public network. Our > implementation is using a secured wireless connection INSIDE our > factory. If you are going to use the the public airways, I seriously > would consider creating a

RE: BSD TCP Programming on iPad

2011-04-27 Thread Shawn Bakhtiar
I think your statement "I cannot make a decision which technique I should use," says it all. The problem is your looking at this from the prospective of a script writer, not a programmer with at least three possible options (NSStream, BSD socks, etc), of which YOU need to choose which is best.

RE: BSD TCP Programming on iPad

2011-04-27 Thread Shawn Bakhtiar
http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Streams/Streams.html You could even write your own wrapper using C and the BSD libraries > Date: Wed, 27 Apr 2011 10:07:59 -0700 > From: scott_ellswo...@alumni.hmc.edu > To: bing...@asu.edu > CC: Cocoa-dev@lists.apple.com > S

RE: Barcode scanner

2011-04-27 Thread Shawn Bakhtiar
I am two steps away from completing this project, except here we are taking inventory on 2M+ lbs of raw and finished goods, as well as shipping/receiving etc... at the docs. The working prototype is siting next to me, still needs a few tweaks like showing the completed shipping lines as green

Re: Stack of NSWindow sheets

2011-04-27 Thread Lee Ann Rucker
Sounds like what we've got - when you start a virtual machine, asynchronous things happen and some of them generate dialogs. Some dialogs are just informative, some need a response. We've considered things like merging content when a dialog appears while another is up but what if dialog A is an

OpenGL paint program

2011-04-27 Thread Reza Farhad
Dear All I am trying to create a paint like program for iPad. I have downloaded and played with Apple's sample code GLPaint, but I have come across one big issue. When I use a brush image with alpha around the edge, like the apple example, I start getting dark edges rather that having the edge

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
Hey Sean, Alias file! Just like one created when we option-drag files from one directory to another in the Finder. Yeah, I'd love to require 10.6 but not a fit for our environment. Honestly, I'm perplexed this feature hasn't already been packaged into the standard obj-c libraries until just no

Re: BSD TCP Programming on iPad

2011-04-27 Thread Sean McBride
On Mon, 25 Apr 2011 02:49:11 +0800, Bing Li said: >I am planning to program with BSD TCP on iPad. The motivation to do that is >that a P2P model is expected. I think the network techniques, such as Web >Services and Push Notification, supported by Cocoa do not meet the >requirements. You might lo

Re: CoreData: "Could not fulfill a fault", but only sometimes …

2011-04-27 Thread Sean McBride
On Thu, 21 Apr 2011 10:52:31 +0200, Felix Franz said: >I have a strange bug in my CoreData-Application (sql store). I received >bug reports where the program throws >an exception "Could not fulfill a fault". This happens while loading the >document. The only way >I can reproduce this problem is us

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Sean McBride
On Wed, 27 Apr 2011 23:13:07 +0200, Peter Lübke said: >Am 27.04.2011 um 21:09 schrieb Quincey Morris: > >> ..., and I don't see NDAlias having a documented 'writeToFile' >> method at all, and (even if it did) ... > >It actually does, as I just found out looking at Nathan Day's homepage: >http://ho

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Quincey Morris
On Apr 27, 2011, at 14:13, Peter Lübke wrote: > Am 27.04.2011 um 21:09 schrieb Quincey Morris: > >> ..., and I don't see NDAlias having a documented 'writeToFile' method at >> all, and (even if it did) ... > > It actually does, as I just found out looking at Nathan Day's homepage: > http://home

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Peter Lübke
Am 27.04.2011 um 21:09 schrieb Quincey Morris: ..., and I don't see NDAlias having a documented 'writeToFile' method at all, and (even if it did) ... It actually does, as I just found out looking at Nathan Day's homepage: http://homepage.mac.com/nathan_day/pages/source.xml He and Sean McBride

AVAssetExportSession & Media Library Assets

2011-04-27 Thread Joshua Tidsbury
Hi folks, I'm struggling with an issue with using AVAssetExportSession. I wish to have greater control over my exported video file by using AVAssetExportSession instead of just accepting the video as provided by the UIImagePicker following capturing the image, and then saving it to the media l

Re: Drawing FULL NSAttributedString

2011-04-27 Thread Aki Inoue
Rimas, Typically the text layout system including the Cocoa Text System works in the typographic metrics that's based on the information embedded in the font. So, most layout information returned by NSLayoutManager is in the typographic metrics if not documented otherwise. The information you

Re: How to detect string encoding before reading a file in NSString?

2011-04-27 Thread Laurent Daudelin
Thanks, John. I'll give it a shot! -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com On Apr 27, 2011, at 12:35, John Pannell

Re: How to detect string encoding before reading a file in NSString?

2011-04-27 Thread John Pannell
Hi Laurent- Certainly. I've zipped up two classes that wrap some functionality from the Text Conversion Manager functions. I'm certain I got these from somewhere else years ago, but failed to find them now. Download at: http://www.positivespinmedia.com/dev/TEC.zip Usage looks something like

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
On Apr 27, 2011, at 3:14 PM, Fritz Anderson wrote: Also — though probably you're just doing it for the example — I don't recommend finding standard directories by concatenating literal strings. Pass the constant NSDesktopDirectory to NSSearchPathForDirectoriesInDomains(). You mean like

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
if( [[NDAlias aliasWithPath:filePath fromPath:aliasDirectory] writeToFile:aliasName] ) { Just following the example provided by creator of NDAlias. Yes, seems weird to me too. I'd post his example code but it's not very compact. I rewrote it for this forum so it could be understood easily

Re: How to detect string encoding before reading a file in NSString?

2011-04-27 Thread Laurent Daudelin
John, Not sure if you read my last email on the topic but using the NSAttributedString initWithURL:encoding:documentAttributes: is failing. I have read a bit about the Text Conversion Manager but if you had already some code you could share, that would spare me reinventing the wheel! Thanks in

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Fritz Anderson
On 27 Apr 2011, at 1:40 PM, Kevin Muldoon wrote: > NSString *aliasDirectory= > [[NSHomeDirectory() stringByAppendingPathComponent: @"Desktop"] > stringByExpandingTildeInPath]; > NSString *aliasName = > @"ANewAliasTo_myF

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Quincey Morris
On Apr 27, 2011, at 11:40, Kevin Muldoon wrote: > NSString *aliasName = > @"ANewAliasTo_myFile.png"; ... > 2011-04-27 14:32:46.263 NDAliasesURLProject[3514:10b] And placed the alias > here... >/Users/kevin/Desktop/ANewAliasToMyFile.png This isn't

Re: How to detect string encoding before reading a file in NSString?

2011-04-27 Thread Laurent Daudelin
On Apr 26, 2011, at 11:43, Nick Zitzmann wrote: > On Apr 26, 2011, at 12:13 PM, Laurent Daudelin wrote: > >> I've found different ways to do that (some pure Cocoa, some using Carbon) >> but I was wondering about the wisdom of this list as to what is the best way >> to detect the encoding of a f

Does NSOperation strongly or weakly reference dependencies?

2011-04-27 Thread Jeffrey J. Early
I've hunted around an it's not clear to me whether or not an NSOperation instance strongly or weakly references its dependencies. Does anybody know the answer? An NSOperationQueue strongly references the operations in its queue (which makes sense). It would also seem to make sense to have an NS

Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Kevin Muldoon
I hope some of you NDAlias users can lend a hand. Everything in the code looks right and everything in the Console looks right but instead of creating an alias on the Desktop, the alias is created next to the compiled program in the xcode project folder. #import #import "Alias.h" int m

Re: BSD TCP Programming on iPad

2011-04-27 Thread Bing Li
Dear Conrad and all, I appreciate so much for all of your replies! Since I am a new iOS developer, I cannot make a decision which technique I should use. Now I just clarify my system again. What I am trying to do is to implement a BitTorrent-like multicast among iPad. Meanwhile, the original data

Re: Stack of NSWindow sheets

2011-04-27 Thread Kyle Sluder
On Wed, Apr 27, 2011 at 10:16 AM, Gregory Weston wrote: > I increasingly believe you're using the wrong UI for the need you describe. > I'm not confident I have a good guess at what the *right* one is, > unfortunately, but sheets spontaneously opening like this really feels wrong. > It seems it

iOS Version Install Base

2011-04-27 Thread koko
I am looking at the UIView Animations Overview. Block-based animations are recommended, but this iOS 4. Is it best to use begin/commit methods for compatibility ! What are others doing? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: BSD TCP Programming on iPad

2011-04-27 Thread Keith Duncan
> The one subtle complication here is that NSStream does not currently > support remote connections on iOS without modification. Fortunately, > Apple provides documentation on how to get around this with a minimal > amount of CFNetwork to setup the stream: > > http://developer.apple.com/library/i

Re: BSD TCP Programming on iPad

2011-04-27 Thread Scott Ribe
On Apr 27, 2011, at 11:12 AM, lbland wrote: > It is just BSD sockets ... get the book. It is: UNIX Network Programming by > Richard Stevens And for beginners, Effective TCP/IP is a good supplemental book. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voi

Re: BSD TCP Programming on iPad

2011-04-27 Thread Conrad Shultz
Bing Li wrote: > I have a Java based server. So iPad needs to communicate with it. > Moreover, I hope a P2P model can be established between the server and > multiple iPads. Therefore, I hope I could use TCP to design the protocol > directly instead of using HTTP. Since HTTP typically runs over TC

Re: Stack of NSWindow sheets

2011-04-27 Thread Gregory Weston
On Apr 27, 2011, at 09:35, Oleg Andreev wrote: > I'll clarify what I meant. > > Normally, user will see only one sheet at a time. There won't be any sort of > step-by-step sheet switching within a single task (like in Xcode 4 when > creating a new file). The only issue I'm trying to solve is p

Re: BSD TCP Programming on iPad

2011-04-27 Thread lbland
hi- On Apr 27, 2011, at 12:25 PM, Bing Li wrote: > Therefore, I hope I could use TCP to design the protocol directly instead of > using HTTP. > > However, I have NOT got sufficient materials to program TCP on iPad. It is just BSD sockets ... get the book. It is: UNIX Network Programming by Ric

Re: Non-Sub-Pixel Rendering Font Rendering Differences when using Core Animation

2011-04-27 Thread Kyle Sluder
On Tue, Apr 26, 2011 at 9:45 PM, Simone Manganelli wrote: > I'm aware of the fact that Core Animation disables sub-pixel rendering for > text when drawing to transparent backgrounds, so I've intentionally designed > my CALayers so that they have opaque backgrounds.  Sub-pixel rendering is > def

Re: BSD TCP Programming on iPad

2011-04-27 Thread Zajkowski, James
TCP is just a magic abstraction that lets you put a stream of data in on one side of the internet and have it appear out the other side, in order and without missing pieces, with some network caveats. It provides nothing else, it's just a raw socket. It's up to you to design the protocol, includi

Re: Stack of NSWindow sheets

2011-04-27 Thread Kyle Sluder
On Wed, Apr 27, 2011 at 6:35 AM, Oleg Andreev wrote: > Again, normally you'll see no dialogs at all (when the password is already > stored in keychain) or a single dialog when a new repository is added or the > password was changed. But I should have a nice fallback for a case when > several di

Re: BSD TCP Programming on iPad

2011-04-27 Thread Scott Ellsworth
Reread the suggestions. Keith suggested CFNetwork and CFSocket.h to handle BSD sockets, JohnP and JohnJ gave documentation and sample code. Have you looked at the resources? For what it is worth, I write Java servers regularly Serving some xml or json over http has some advantages, but if the s

Re: Properties vs Instance Variables

2011-04-27 Thread Joanna Carter
Le 27 avr. 2011 à 17:39, David Duncan a écrit : > @property(...) id foo; > @synthesize foo = _foo; > > Then the following holds: > _foo and self->_foo are equivalent means of direct ivar access. > self.foo = bar and [self setFoo:bar] are equivalent means of setting the > value of the property fo

Layout vs. Frame: X position of objects

2011-04-27 Thread Todd Heberlein
When using the "Size & Position" information for an object to position it in a view, what is the difference between the "Layout" and "Frame" values in the pop-up button? When should I use "Layout", and when should I use "Frame"? When trying to layout objects, especially when trying to align the

Re: Properties vs Instance Variables

2011-04-27 Thread David Duncan
On Apr 27, 2011, at 9:09 AM, Joanna Carter wrote: > I too would like to see a means of explicitly accessing the ivar, even if it > has the same name as the property; although, I thought that not calling > self.property from within the .m file defaulted to accessing the ivar if both > it and a p

Re: BSD TCP Programming on iPad

2011-04-27 Thread Bing Li
Dear Conrad, I appreciate so much for your reply! I have a Java based server. So iPad needs to communicate with it. Moreover, I hope a P2P model can be established between the server and multiple iPads. Therefore, I hope I could use TCP to design the protocol directly instead of using HTTP. Howe

Window fringe, automatic guides

2011-04-27 Thread Todd Heberlein
The HIG talks about the removal of window-frame surface on the sides of windows starting in Mac OS X 10.5. But when using IB (I'm still back in 3.2.6) some objects show an automatic guide when positioning near the edge of a window (e.g., NSView (custom view), NSSplitView, NSPopupButton, NSTextvi

Re: Properties vs Instance Variables

2011-04-27 Thread Joanna Carter
Le 27 avr. 2011 à 16:52, Matt Neuburg a écrit : > And Apple now exemplifies this pattern, e.g. in the app template for > Window-based Application: there's a "window" property accessing a "_window" > ivar. I think they do this just so you can't accidentally say "window" > unqualified. m. I also

Re: BSD TCP Programming on iPad

2011-04-27 Thread Conrad Shultz
Why would the platform, architecture, or server language impact the implementation of a network client application? That sort of defeats the whole point of TCP/IP and the rest of the protocol stack... Can you elaborate more on what you are trying to do? It sounds to me like you are putting the

Re: Properties vs Instance Variables

2011-04-27 Thread Matt Neuburg
On Tue, 26 Apr 2011 21:23:10 -0700, Kyle Sluder said: >On Tue, Apr 26, 2011 at 9:07 PM, Steve Christensen wrote: >> I believe it's only necessary if you want to do a straight "@synthesize >> foo;", which would expect the instance variable to have the same name as the >> property. > >And it's wo

Drawing FULL NSAttributedString

2011-04-27 Thread Rimas M.
Hi folks, Last few days I am trying to solve very strange puzzle - how to draw FULL attributed string. Short story: I have a NSTextStorage object, which holds my formatted string information. I am editing it via NSTextView (NSLayoutManager + NSTextContainer + my NSTextStorage) mechanism. That wo

Re: Stack of NSWindow sheets

2011-04-27 Thread Mike Abdullah
I swear I've seen this in some open source code – maybe Adium? On 26 Apr 2011, at 19:55, Oleg Andreev wrote: > Hello, > > Is there a well-known way (or a library) to keep a stack (or queue) of sheets > per window? > > I'm a developer of Gitbox - a git repository manager. It keeps several repo

Re: sort array of dictionaries by multiple critera

2011-04-27 Thread Graham Cox
On 27/04/2011, at 11:59 PM, Martin Batholdy wrote: > [bookmarks sortUsingDescriptors:[NSArray arrayWithObjects:descriptor, nil]]; > > > but how can I first "group" the dictionaries by type and then within the > types sort them by date? > (so use two sorting-criteria with a different priority)

Re: sort array of dictionaries by multiple critera

2011-04-27 Thread Steve Christensen
Either of these would allow you to do what you want for NSArray: - (NSArray *)sortedArrayUsingComparator:(NSComparator)cmptr; - (NSArray *)sortedArrayUsingFunction:(NSInteger (*)(id, id, void *))comparator context:(void *)context; And these for NSMutableArray: - (void)sortUsingComparator:(NSCom

Re: sort array of dictionaries by multiple critera

2011-04-27 Thread Dave DeLong
In that array of sort descriptors, you'd need to pass two of them. The first to sort by type and the second to sort by date. The second sort descriptor would only be used if two objects are sorted as equal by the first descriptor. Dave Sent from my iPhone On Apr 27, 2011, at 6:59 AM, Martin B

sort array of dictionaries by multiple critera

2011-04-27 Thread Martin Batholdy
Hi, I have an array of dictionaries. One dictionary-entry looks like this: { ID = 34; counter = 2; date = "2011-04-19 15:43:52 +0200"; title = "test.pdf"; type = file; } Now I would like to sort my array of dictionaries first by type and then (within the type-dictionaries)

Re: Stack of NSWindow sheets

2011-04-27 Thread Oleg Andreev
I'll clarify what I meant. Normally, user will see only one sheet at a time. There won't be any sort of step-by-step sheet switching within a single task (like in Xcode 4 when creating a new file). The only issue I'm trying to solve is presenting a username/password dialog when it was invoked b

Re: Stack of NSWindow sheets

2011-04-27 Thread Graham Cox
I've seen an app that uses a stack of sheets in this fashion, and it's a horrid, barely usable mess. It's a Microsoft app, though I forget exactly which (and it may have been fixed, as this was quite some time ago). The problem is that the user either has to remember the "path" that led them th

Re: Stack of NSWindow sheets

2011-04-27 Thread Gregory Weston
Oleg Andreev wrote: > Is there a well-known way (or a library) to keep a stack (or queue) of sheets > per window? > > I'm a developer of Gitbox - a git repository manager. It keeps several repos > opened and periodically updates them. If some repos require authentication, a > modal dialog pop

Re: BSD TCP Programming on iPad

2011-04-27 Thread Bing Li
Dear Keith and all, I hope my iPad could communicate with my servers. The servers run Java. However, I don't want to use Web services. So I hope I could use BSD sockets to talk with remote Java servers. I think XML should be utilized too for this case. I am not sure if it is possible to do that.