User and company name comments in Xcode projects
Question: I am wondering how you change the comments that Xcode puts in the top of each source file to set the proper username and company name instead of updating every file by hand if these macro fields are different from the default settings of Address Book. I am speaking about these source code lines:
// Created by MyUserName on 8/19/10.
// Copyright __MyCompanyName__ 2010. All rights reserved.
Read more
Cancel window closing operation in java app
Question: In my Java swing crossplatform project I have to ask the user if he/she really wants to quit from the desktop application before exit, so I have to handle the WindowClosing event. My problem is simple. I expected the DO_NOTHING_ON_CLOSE flag to prevent the form from closing. I didn’t thought the WindowClosing event will be fired even if the setDefaultCloseOperation was set to DO_NOTHING. When I even click on the NO button the window does close! Have you experienced it before and what have you done? Thank you in advance. I am attaching my code. Read more
Change data on PDF master page with iText
Question: I am using Adobe LiveCycle ES2 to design multipaged and taylor made PDF documents containing interactive forms. We build JAVA web server applications to manipulate these online PDF documents with iText 5.0 API library. By using LiveCycle I created a static XFA form with one master page and some watermark and text fields on the footer. I want to change these on the fly.
I got a strange result. I added some text fields like TextWatermark, TextFieldDate and TextFieldName. The form I have created contains 10 pages so I expected Adobe Reader to present those fields on all the pages. The first page looks OK but my iText solution does not automatically update all other associated pages. What’s wrong?
Read more
Build iPhone static library with Xcode
Question: Our project team has a new iPad/iPhone 4 project. We want to put some business logic and generic functionality into a common library but the Xcode 3.2.2 SDK does not allow us to create custom Frameworks unlike for Mac OS X. Is there a way to build a dynamic library for iPhone apps too? We have already opened our App Store account.
Read more

