bundle

How to make Cocoa document package type with it's extension hidden by default?

孤街醉人 提交于 2019-12-24 08:58:01
问题 I'm making a Cocoa application which uses document package (bundle) as it's data. I specified an extension and Finder now recognizes the folder with the extension as a document well. But the folder's extension is still displaying, and I want to hide it by default (like application bundle) Is there an option to do this? 回答1: You can use the -setAttributes:ofItemAtPath:error: method of NSFileManager to set the file attributes of any file. In this case you want to set the value of the

New ScriptBundle .Include not working for breeze.min.js

社会主义新天地 提交于 2019-12-24 08:39:40
问题 I am using John Papa's SPA jump start App to create my own app and for every part of his tutorial I complete I keep running into the same problem. In a new section of the tutorial I have to add another javaScript file and to this I use BundleConfig.cs. I copy and paste the .Include method and add the new JS file. But in firebug I can't see the script in the network tab. using System; using System.Web.Optimization; namespace AgencyUpdate { public class BundleConfig { public static void

Sharing data between apps on iOS

只愿长相守 提交于 2019-12-24 05:55:06
问题 I have several small apps that share common data (images, sounds files, etc). This data bloats the size of each app. When the user installs 2 or more of these apps that will bloat the device space with duplicate data. Is there a way that I can share this data between my apps so that each app doesn't duplicate this data within its bundle? 回答1: You can have a common file space between apps by using app groups. An example of how to use them can be found here: Sharing data in between apps in IOS

Problem passing a Bundle with onSearchRequested

穿精又带淫゛_ 提交于 2019-12-24 02:45:11
问题 I'm actually trying to use the built-in search interface of Android, but I have some issues when I try to pass data with the search query. Here is a brief explanation : I have an object in a first Activity (FirstActivity) called "Category" which implements Serializable (I already pass it successfuly between Activities) and I want to perform a search related to that category, and display the results in a second Activity (SecondActivity). So, in FirstActivity I override the onSearchRequest

Get what parameter from Handler.obtainMessage()

北慕城南 提交于 2019-12-24 00:26:43
问题 I am using a Thread to do some BT tasks. I am trying to send a message to the UI thread so I can do UI work based on my BT thread. To do this I am using a Handler, but I don't know how to retrive the data that I send to my Handler. To send data i use: handler.obtainMessage(intCode).sendToTarget(); Where intCode is an int. My Handler looks like this. Handler handler = new Handler(){ @Override public void handleMessage(Message msg){ Bundle data = msg.getData(); int code = data.getInt("what");

Rails gemfile editing

孤街醉人 提交于 2019-12-23 22:17:02
问题 I'm starting a Rails tutorial that tells me to edit the gemfile when creating a new demo app: source 'https://rubygems.org' gem 'rails', '3.2.3' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem :development do gem 'sqlite3', '1.3.5' end # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '3.2.4' gem 'coffee-rails', '3.2.2' # See https://github.com/sstephenson/execjs#readme for more

Aurelia bundling fails when using relative import path

北城余情 提交于 2019-12-23 20:51:42
问题 I'm using aurelia with typescript and I wanted to avoid using relative import path like : import { DialogBox } from '../../resources/elements/dialog-box'; but rather import { DialogBox } from 'resources/elements/dialog-box'; I modified my tsconfig.json so the compiler handles relative paths by adding baseUrl and paths like this: "compilerOptions": { "sourceMap": true, "target": "es5", "module": "amd", "declaration": false, "noImplicitAny": false, "removeComments": true, "emitDecoratorMetadata

rxjs bundle from unpkg

て烟熏妆下的殇ゞ 提交于 2019-12-23 15:35:42
问题 I have an angular 2.0.0 (same issue in 2.2.0) project. The current dev build generates > 100 http requests. This is due to it loading non-bundled versions of rxjs.. When I have the following : map: { // our app is within the app folder app: 'app', // angular bundles // snip 'rxjs': 'npm:rxjs', 'angular-in-memory-web-api': 'npm:angular-in-memory-web-api', }, The app works but we have 1000+ http requsts , so I try to load rxjs from the bundle, todo this I remove rxjs': 'npm:rxjs' and I add the

Reading Text File from Xcode Bundle

。_饼干妹妹 提交于 2019-12-23 14:19:40
问题 Why can't I read the content of foo.rtf? I've already put it in Xcode bundle. fileRoot still contains null. NSString* filePath = @"foo"; NSString* fileRoot = [[NSBundle mainBundle] pathForResource:filePath ofType:@"rtf"]; NSLog(@"File root contains %@", fileRoot); @TheAmateurProgrammer, Thank you for the diagram. I just added foo.rtf into the bundle resources. The result for fileRoot is still null. What step am I still missing? Target's "Copy Bundle Resources" in Build Phases now contains foo

Exclude ts/js file from bundle using webpack

你说的曾经没有我的故事 提交于 2019-12-23 13:24:33
问题 I am new to webpack. Currently I am working on angular2 application with webpack. As part of requirement we want to have a settings file which should not be bundled so that one can change URL in settings.js file after bundle also. Below is the code for two files. settings.ts const foo = { url:'localhost' }; export { foo }; script.ts import { foo } from 'settings'; Both ts files will be compiled to js file before bundle. And now i want to exclude settings.ts file from bundle and want to copy